Usage: js7_install_joc.sh [Options] [Switches]
Installation Options:
--setup-dir=<directory> | optional: directory to which the JOC Cockpit installer will be extracted
--response-dir=<directory> | optional: setup response directory holds joc_install.xml and JDBC Drivers
--release=<release-number> | optional: release number such as 2.2.3 for download if --tarball is not used
--tarball=<tar-gz-archive> | optional: the path to a .tar.gz archive that holds the JOC Cockpit tarball,
| if not specified the JOC Cockpit tarball will be downloaded from the SOS web site
--home=<directory> | optional: home directory of JOC Cockpit, required if --patch or --backup-dir is used
--data=<directory> | optional: data directory of JOC Cockpit
--cluster-id=<identifier> | optional: Cluster ID of the JOC Cockpit instance, default: joc
--instance-id=<number> | optional: unique number of a JOC Cockpit instance in a cluster, range 0 to 99, default: 0
--user=<account> | optional: user account for JOC Cockpit daemon, default: joc_install.xml setting
--patch=<issue-key> | optional: identifies a patch for an existing JOC Cockpit installation
--jar=<jar-file> | optional: the path to a .jar file that holds the patch
--license-key=<key-file> | optional: specifies the path to a license key file that will be installed
--license-bin=<binary-file> | optional: specifies the path to the js7-license.jar binary file for licensed code to be installed
| if not specified the file will be downloaded from the SOS web site
--backup-dir=<directory> | optional: backup directory for existing JOC Cockpit home directory
--log-dir=<directory> | optional: log directory for log output of this script
--exec-start=<command> | optional: specifies the command to start JOC Cockpit, e.g. 'StartService'
--exec-stop=<command> | optional: specifies the command to stop the JOC Cockpit, e.g. 'StopService'
--return-values=<file> | optional: specifies a file that receives return values such as the path to a log file
Configuration Options:
--deploy-dir=<directory>[,<dir>] | optional: deployment directories from which configuration files will be copied to JOC Cockpit
--properties=<file> | optional: specifies the joc.properties file that will be copied to <home>/jetty_base/resources/joc/
--title=<title> | optional: title of the JOC Cockpit instance in the GUI, default: joc_install.xml setting
--security-level=low|medium|high | optional: security level of JOC Cockpit instance, default: joc_install.xml setting
--dbms-config=<hibernate-file> | optional: DBMS Hibernate configuration file, default: joc_install.xml setting
--dbms-driver=<jdbc-driver-file> | optional: DBMS JDBC Driver file, default: joc_install.xml setting
--dbms-init=byInstaller|byJoc|off | optional: DBMS create objects by installer, on start-up or none, default: joc_install.xml setting
--http-port=<port> | optional: specifies the http port the JOC Cockpit will be operated for, default: 4446
port can be prefixed by network interface, e.g. localhost:4446
--https-port=<port> | optional: specifies the https port the JOC Cockpit will be operated for, default:
port can be prefixed by network interface, e.g. joc.example.com:4446
--ini=<ini-file[,ini-file]> | optional: one or more Jetty config files http.ini, https.ini, ssl.ini etc. will be copied to <home>/jetty_base/start.d/
--keystore=<path> | optional: path to a PKCS12 keystore file that will be copied to <data>/resources/joc/
--keystore-password=<password> | optional: password for access to keystore
--keystore-alias=<alias-name> | optional: alias name for keystore entry
--truststore=<path> | optional: path to a PKCS12 truststore file that will be copied to <data>/resourdes/joc/
--truststore-password=<password> | optional: password for truststore password
--java-home=<directory> | optional: Java Home directory for use with the Instance Start Script
--java-options=<options> | optional: Java Options for use with the Instance Start Script
--service-dir=<directory> | optional: systemd service directory, default: /usr/lib/systemd/system
--service-file=<file> | optional: path to a systemd service file that will be copied to <home>/jetty/bin
--service-name=<name> | optional: name of the systemd service to be created, default js7_joc
Switches:
-h | --help | displays usage
-u | --as-user | installs configuration directories as current user, other directories as root using sudo
-E | --preserve-env | preserves environment variables when switching to root using sudo -E
--no-config | skips JOC Cockpit configuration changes
--no-install | skips JOC Cockpit installation, performs configuration updateschanges only
--uninstall | uninstalls JOC Cockpit
--no-jetty | skips Jetty servlet container installation
--show-logs | shows log output of the script
--make-dirs | creates the specified directories if they do not exist
--make-service | creates the systemd service for JOC Cockpit
--restart | stops a running JOC Cockpit and starts JOC Cockpit after installation
--kill | kills a running JOC Cockpit if used with the --restart switch |