Configuring PingAccess to run as a Linux systemd service
About this task
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:
Steps
-
Copy the configuration file from the
PA_HOME/sbin/linux/pingaccess.service
directory to the/etc/systemd/system/pingaccess.service
directory. -
In the
pingaccess.service
file, replace the following variables:-
Replace ${PA_HOME} with the path to the PingAccess instance.
-
Replace ${PA_USER} with the username used to run the service.
-
Replace ${PA_JAVA_HOME} with the path to the Java installation folder.
-
-
To allow read-write activity on the service, run:
chmod 644 /etc/systemd/system/pingaccess.service
-
To load the systemd service, run:
systemctl daemon-reload
-
To enable the service, run:
systemctl enable pingaccess.service
-
To start the service, run:
systemctl start pingaccess.service