Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Another utility which is common for automation of services in linux Linux is the systemctl.

Systemctl allows users and linux Linux administrators fully control and automatons of linux Linux services, deals with machine restarts and responses of the service after unexpected crashes.

In order to create XpoLog XPLG service via this utility, please follow:

1) install and run XpoLog XPLG as root user
2) vi /etc/systemd/system/xpologXPLG.service

3) Set the xpologXPLG.service file contents to:

[Unit]
Description=XpoLog XPLG Service
After=network-online.target

[Service]
Type=forking
NotifyAccess=main
User=root
ExecStart=/PATH_TO_XPOLOGXPLG_INSTALL_DIR/runXpoLog.sh start
Restart=always

...

4) Grant execution permission to the service file - chmod +x /etc/systemd/system/xpologXPLG.service
5) Update the OS regarding the new service - systemctl enable xpologXPLG
6) systemctl daemon-reload

- Kill XpoLog XPLG (it will automatically start)
- From this point on:
systemctl start xpologXPLG
systemctl stop xpologXPLG

- Change /PATH_TO_XPOLOGXPLG_INSTALL_DIR/restart.sh (In order to deal with the daily recycle of XpoLogXPLG):

#!/bin/sh
DIR=`dirname $0`

...