Configuring PingCentral to run as a Linux systemd service
Run PingCentral as a Linux systemd service that automatically starts when Linux starts.
Before you begin
Ensure that:
-
You are signed on to your system as a root user.
-
The <JAVA-HOME> path points to the Java Development Kit (JDK) software on your system. For example,
usr/java/jdk11.0_4. -
The <PINGCENTRAL_HOME> path points to the folder extracted from the
.ziparchive in your installation directory. Ensure that this path does not reside within a user’s home folder.
Steps
-
Copy the
pingcentral.serviceconfiguration file from$PINGCENTRAL_HOME/sbin/linux/pingcentral.serviceto/lib/systemd/system/pingcentral.service.You can also copy this file to the
/etc/systemd/systemlocation, if appropriate -
Open the
pingcentral.servicefile and assign appropriate values to the following variables:-
<PINGCENTRAL_HOME>: Labeled "WorkingDirectory."
-
<PINGCENTRAL_USER>: Labeled "User."
-
<JAVA_HOME>: Labeled "Environment."
-
-
Enable read and write activity for the service using the
chmod 644 /lib/systemd/system/pingcentral.servicecommand.If you copied this file to the /etc/systemd/system location in step 1, use this command instead:
chmod 644 /etc/systemd/system/pingcentral.service. -
Load the systemd service using the
systemctl daemon-reloadcommand. -
Enable the service using the
systemctl enable pingcentral.servicecommand. -
Start the service using the
systemctl start pingcentral.servicecommand.
Removing the PingCentral systemd service
If you have privileges that allow you to install applications, you can remove the PingCentral systemv service.
Steps
-
Sign on to the system as a root user.
Option Description Stop the service
Run the
/etc/init.d/pingcentral stopcommand.Delete the service
Run the
chkconfig --del pingcentralcommand. -
Delete the
/etc/init.d/pingcentralscript if it is no longer needed.