Configure PingAccess to run as a Linux systemv or systemd service, or remove the PingAccess Linux service.
Configuring PingAccess to run as a Linux systemv or systemd service causes it to start automatically when Linux starts.
To configure multiple instances of PingAccess as Linux services, see the Linux systemv tab.
Configuring PingAccess to run as a Linux systemv service
The service script will only start if <JAVA_HOME> and <PA_HOME> are set and if the script can find the PingAccess license file.
To configure multiple instances of PingAccess on a single host as Linux services, make the following modifications to the script for each service:
- Use a unique script name for each instance.
- Use a separate directory structure for each instance in the file system.
- Configure the following settings in the script file for each instance:
Setting | Description |
---|---|
<APPNAME> |
A unique value for each instance. |
<PA_HOME> |
The path to the PingAccess instance. |
<JAVA_HOME> |
The path to the Java installation folder. |
<USER> |
Optional value for the username used to run the service. |
To configure PingAccess to run as a Linux systemv service:
After registering, you can use the service
command to control the
PingAccess service. The available commands
are:
- start
- Start the PingAccess service.
- stop
- Stop the PingAccess service.
- restart
- Restart the PingAccess service.
- status
- Show the status of the PingAccess service and the service process identifier (PID).
The service pingaccess status
command displays the current
status of the running PingAccess
service.
Configuring PingAccess to run as a Linux systemd service
The service script will only start if <JAVA_HOME> and <PA_HOME> are set and if the script can find the PingAccess license file.
To configure PingAccess to run as a Linux systemd service:
Removing the PingAccess Linux service
You must run the following commands as the root
user.
To remove the PingAccess service from a Linux system:
- To stop the service, run the /etc/init.d/pingaccess stop command.
- Run the chkconfig --delete pingaccess command.
- Optional:
Delete the
/etc/init.d/pingaccess
script.