Install and Update
Install JOC Cockpit for Unix
Example for use of Installation Script
#!/usr/bin/env pwsh ./Install-JS7Joc.ps1 ` -InstanceId 1 ` -User sos ` -HomeDir "/opt/sos-berlin.com/js7/joc" ` -Data "/var/sos-berlin.com/js7/joc" ` -Tarball /mnt/releases/scheduler_setups/current/js7_joc_unix.2.5.2.tar.gz ` -HttpPort 4446 ` -Title "Primary JOC Cockpit" ` -DBMSConfig "/home/sos/hibernate.cfg.xml" ` -JavaHome "/opt/java/jdk-11.0.2+9" ` -PreserveEnv ` -AsUser ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -JavaHome "/opt/java/jdk-11.0.2+9" ` -MakeDirs # Installs the JOC Cockpit from the given tarball for the current user account # Operates the JOC Cockpit for HTTP port 4446 running for the indicated run-time user account # Specifies a Hibernate configuration file for database access # Specifies Java from the given location # Creates the JOC Cockpit's systemd service
Install JOC Cockpit for Windows
Install JOC Cockpit for HTTP Connections
Example for use of Installation Script
./Install-JS7Joc.ps1 ` -InstanceId 1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -Tarball "C:\js7\downloads\js7_joc_windows.2.5.2.zip ` -HttpPort 4446 ` -Title "Primary JOC Cockpit" ` -DBMSConfig "C:\js7\hibernate.cfg.xml" ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -ServiceCredentials ( New-Object -typename System.Management.Automation.PSCredential -ArgumentList '.\sos', ( 'sos' | ConvertTo-SecureString -AsPlainText -Force) ) ` -MakeDirs # Installs the JOC Cockpit from the indicated .zip archive # Creates the JOC Cockpit's Windows Service for the local account ".\sos" using the password "sos" # There are alternative ways how to avoid passwords from being specified in plain text # Specifies a Hibernate configuration file for database access # Stops the JOC Cockpit's Windows Service before installation and starts the service after installation
Install JOC Cockpit for HTTPS Connections
Example for use of Installation Script
./Install-JS7Joc.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -Tarball "C:\js7\downloads\js7_joc_windows.2.5.2.zip" ` -HttpsPort 4446 ` -DBMSConfig "C:\js7\hibernate.cfg.xml" ` -Keystore "C:\js7\keys\https-keystore.pfx" ` -KeystorePassword "('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -KeyAlias "wintest-primary-joc" ` -Truststore "C:\js7\certs\https-truststore.pfx" ` -TruststorePassword ('jobscheduler' | ConvertTo-SecureString -AsPlainText -Force) ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -MakeDirs # Installs the JOC Cockpit from the indicated tarball # Does not offer an HTTP port but makes the HTTPS port available for any network interfaces # Applies a template file for SSL/TLS related settings that is automatically updated from arguments to the installation script # Makes use of a keystore in PKCS12 format with the given alias name and password and a truststore respectively
Patch
Patch JOC Cockpit for Linux
Patch JOC Cockpit from Download
Example for use of Installation Script
#!/usr/bin/env pwsh ./Install-JS7Joc.ps1 ` -HomeDir /opt/sos-berlin.com/js7/joc ` -HttpPort 4444 ` -Release 2.2.3 ` -Patch JS-1984 ` -Restart # Patches the JOC Cockpit by downloading the indicated patch for the given release from the SOS Web Site # Restarts the systemd service
Patch JOC Cockpit from Tarball
Example for use of Installation Script
#!/usr/bin/env pwsh ./Install-JS7Joc.ps1 ` -HomeDir /opt/sos-berlin.com/js7/joc ` -Tarball /tmp/js7_joc_unix.2.2.3.JS-1984.tar.gz ` -Patch JS-1984 ` -Restart # Patches the JOC Cockpit from a previously downloaded patch tarball # Restarts the systemd service
Patch JOC Cockpit for Windows
Patch JOC Cockpit from Download
Example for use of Installation Script
./Install-JS7Joc.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -Release 2.2.3 ` -Patch JS-1984 ` -Restart # Patches the JOC Cockpit by downloading the indicated patch for the given release from the SOS Web Site # Restarts the JOC Cockpit's Windows Service to apply the patch
Patch JOC Cockpit from .zip Archive
Example for use of Installation Script
./Install-JS7CJoc.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -Tarball "C:\js7\downloads\js7_joc_windows.2.2.3.JS-1984.zip" ` -Patch JS-1984 ` -Restart # Patches the JOC Cockpit using the previously downloaded .zip archive # Restarts the JOC Cockpit's Windows Service to apply the patch
Uninstall
Uninstall JOC Cockpit for Linux
Example for use of Installation Script
#!/usr/bin/env pwsh ./Install-JS7Joc.ps1 ` -HomeDir "/opt/sos-berlin.com/js7/joc" ` -Data "/var/sos-berlin.com/js7/joc" ` -ExecStop "StopService" ` -Uninstall # Stops and removes the JOC Cockpit's systemd service # Removes the home directory and data directory
Uninstall JOC Cockpit for Windows
Example for use of Installation Script
./Install-JS7Joc.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" ` -Data "C:\ProgramData\sos-berlin.com\js7\joc" ` -Uninstall # Stops and removes the JOC Cockpit's Windows Service # Removes the home directory and data directory
Overview
Content Tools