Installing the Controller as a service on Linux
You can install the Fortify ScanCentral SASTController as a service on Linux. These instructions provide an example of one method of installing the Controller as a service.
To install the Controller as a service on a Linux system:
Install the Controller in a location where the user and group using the service have access.
For installation instructions, see Installing the Controller.
Configure the Controller service by creating a systemd unit file
scancentral.servicein the/etc/systemd/system/directory with the following content.In the following content, replace <controller_install_dir> with the directory where you installed the Controller in step 1. Replace <path_to_jre> with the location of your JRE.
[Unit] Description=ScanCentral SAST Controller Service After=syslog.target network.target [Service] Type=forking #User to run ScanCentral SAST Controller. If commented out, the root user is used. #User=sc_user #Group to run ScanCentral SAST Controller. If commented out, the root group is used. #Group=sc_user #Specify the location of JRE Environment=JAVA_HOME=<path_to_jre> Environment=CATALINA_PID=<controller_install_dir>/tomcat/temp/tomcat.pid Environment=CATALINA_HOME=<controller_install_dir>/tomcat Environment=CATALINA_BASE=<controller_install_dir>/tomcat #Uncomment and specify CATALINA_OPTS if needed #Environment=CATALINA_OPTS= #Uncomment and specify JAVA_OPTS if needed #Environment=JAVA_OPTS= ExecStart=<controller_install_dir>/tomcat/bin/startup.sh ExecStop=/bin/kill -15 $MAINPID [Install] WantedBy=multi-user.target
Reload the daemon to discover and load the new service file:
systemctl daemon-reload
Enable the service to start on startup by running the following command:
systemctl enable scancentral.service
See also