Install and Update
Install Controller for Unix
Example for use of Installation Script
#!/usr/bin/env pwsh ./Install-JS7Controller.ps1 ` -HomeDir "/opt/sos-berlin.com/js7/controller" ` -Data "/var/sos-berlin.com/js7/controller/jobscheduler" ` -Tarball /mnt/releases/scheduler_setups/current/js7_controller_unix.2.5.2.tar.gz ` -ControllerId "jobscheduler" ` -HttpPort 4444 ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -JavaHome "/opt/java/jdk-11.0.2+9" ` -MakeDirs # Installs the Controller from the given tarball # Operates the Controller for HTTP port 4444 running in the current user account # Specifies Java from the given location # Creates the Controller's systemd service
Install Controller for Windows
Install Controller for HTTP Connections
Example for use of Installation Script
./Install-JS7Controller.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\controller" ` -Data "C:\ProgramData\sos-berlin.com\js7\controller\jobscheduler" ` -Tarball /js7/downloads/js7_controller_windows.2.5.2.zip ` -ControllerId "jobscheduler" ` -HttpPort 4444 ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -ServiceCredentials ( New-Object -typename System.Management.Automation.PSCredential -ArgumentList '.\sos', ( 'sos' | ConvertTo-SecureString -AsPlainText -Force) ) ` -MakeDirs # Installs the Controller from the indicated .zip archive # Creates the Controller'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 # Stops the Controller's Windows Service before installation and starts the service after installation
Install Controller for HTTPS Connections
Example for use of Installation Script
./Install-JS7Controller.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\controller" ` -Data "C:\ProgramData\sos-berlin.com\js7\controller\jobscheduler" ` -Tarball "C:\js7\downloads\js7_controller_windows.2.5.2.zip" ` -ControllerId "jobscheduler" ` -HttpPort localhost:4444 ` -HttpsPort 44443 ` -PrivateConf "C:\js7\templates\private.conf-template-controller" ` -JocPrimaryCert "C:\js7\certs\wintest-primary-joc.crt" ` -Keystore "C:\js7\keys\https-keystore.pfx" ` -KeystorePassword "jobscheduler" ` -KeyAlias "wintest-primary-controller" ` -Truststore "C:\js7\certs\https-truststore.pfx" ` -TruststorePassword "jobscheduler" ` -ExecStart StartService ` -ExecStop StopService ` -MakeService ` -MakeDirs # Installs the Controller from the indicated tarball # Limits the HTTP port to the localhost network interface, 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 # Specifies the server certificate location of the JOC Cockpit instance that is used to manage the Controller # Makes use of a keystore in PKCS12 format with the given alias name and password and a truststore respectively
Find an example for a private.conf
template file for download: private.conf-template-controller
Patch
Patch Controller for Linux
Patch Controller from Download
Example for use of Installation Script
#!/usr/bin/env pwsh ./Install-JS7Controller.ps1 ` -HomeDir /opt/sos-berlin.com/js7/controller ` -HttpPort 4444 ` -Release 2.2.3 ` -Patch JS-1984 ` -Restart # Patches the Controller by downloading the indicated patch for the given release from the SOS Web Site # Restarts the systemd service
Patch Controller from Tarball
Example for use of Installation Script
#!/usr/bin/env pwsh ./Install-JS7Controller.ps1 ` -HomeDir /opt/sos-berlin.com/js7/controller ` -HttpPort 4444 ` -Tarball /tmp/js7_controller_unix.2.2.3.JS-1984.tar.gz ` -Patch JS-1984 ` -Restart # Patches the Controller from a previously downloaded patch tarball # Restarts the systemd service
Patch Controller for Windows
Patch Controller from Download
Example for use of Installation Script
./Install-JS7Controller.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\controller" ` -HttpPort 4444 ` -Release 2.2.3 ` -Patch JS-1984 ` -Restart # Patches the Controller by downloading the indicated patch for the given release from the SOS Web Site # Restarts the Controller's Windows Service to apply the patch
Patch Controller from .zip Archive
Example for use of Installation Script
./Install-JS7Controller.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\controller" ` -HttpPort 4444 ` -Tarball "C:/tmp/js7_controller_windows.2.2.3.JS-1984.zip" ` -Patch JS-1984 ` -Restart # Patches the Controller using the previously downloaded .zip archive # Restarts the Controller's Windows Service to apply the patch
Uninstall
Uninstall Controller for Linux
Example for use of Installation Script
#!/usr/bin/env pwsh ./Install-JS7Controller.ps1 ` -HomeDir "/opt/sos-berlin.com/js7/controller" ` -Data "/var/sos-berlin.com/js7/`controller/jobscheduler" ` -ControllerId "jobscheduler" ` -HttpPort 4445 ` -ExecStop "StopService" ` -Uninstall # Uninstalls the Controller using systemd to stop the Controller service # Removes the systemd service # Removes the home directory and data directory
Uninstall Controller for Windows
Example for use of Installation Script
./Install-JS7Controller.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\controller" ` -Data "C:\ProgramData\sos-berlin.com\js7\controller\jobscheduler" ` -ControllerId "jobscheduler" ` -HttpPort 4445 ` -StopTimeout 10 ` -Uninstall # Uninstalls the Controller waiting for a maximum of 10s for the Controller to terminate before aborting the Controller # Stops and removes the Controller's Windows Service # Removes the home directory and data directory
Overview
Content Tools