Create xlxd.service

SystemD Unit file for xlxd
This commit is contained in:
MW0MWZ 2021-06-08 12:06:58 +01:00 committed by GitHub
parent 94b725f452
commit ded9724016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
scripts/xlxd.service Normal file
View file

@ -0,0 +1,18 @@
[Unit]
Description=XLX999
After=syslog.target network.target
[Service]
User=root
Group=root
Type=forking
StandardOutput=journal
StandardError=journal
ExecStart=/bin/bash -c "/xlxd/xlxd XLX999 192.168.1.240 127.0.0.1"
ExecStartPost=/bin/bash -c "pgrep xlxd > /var/log/xlxd.pid"
ExecStopPost=/bin/bash -c "rm -rf /var/log/xlxd.pid"
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target