Running dsTest as a Service
dsTest can be run as a systemd service. The service configuration file, shown below, is installed with the software and is located at /lib/systemd/system/dsTest.service. It is configured to restart the application automatically as the devsol user if it stopped for some reason other than being manually stopped using systemctl or the dsClient terminate command. If you modify this file it will not be overwritten when the software is upgraded.
If you want the application to start when the server boots, instruct the system to do so with the systemctl enable dsTest command. You can also manually start and stop the application using systemctl start dsTest and systemctl stop dsTest respectively. You can read more about these Linux commands here.
Description=Job that enables dsTest as a service
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=0
[Service]
Type=forking
Restart=always
RestartSec=1
User=devsol
WorkingDirectory=/home/devsol/
ExecStart=/usr/local/devsol/bin/dsTest -B
PIDFile=/var/run/dsTest.pid
KillSignal=SIGTERM
KillMode=mixed
TimeoutStartSec=20
TimeoutStopSec=20
[Install]
WantedBy=multi-user.target
Launch Options
When executed as a service, the command line options you would normally include when launching dsTest must be stored in the working directory, /home/devsol/dsTest.opt in this case, exactly as you would enter them on the command line.
|
If your installation was previously running as a service and used a dsTest.conf file, populate the dsTest.opt file with the value of the OPTIONS setting (e.g. OPTIONS="-l6 -L6 -t5000 -i10.10.5.6" would translate to -l6 -L6 -t5000 -i10.10.5.6 in dsTest.opt). |