CAI-Watchdog/scripts/unix/usr/lib/systemd/system/cai-watchdog.service
Alexander I. Chebykin f1d16093b6 Now you can run script on watchdog startup. File structure changed on *nix. Some changes in config file and scripts, please check on upgrade.
Now you can run script on watchdog startup. File structure changed on *nix. Some changes in config file and scripts, please check on upgrade.
2022-10-29 16:57:57 +03:00

18 lines
339 B
Desktop File

[Unit]
Description=Watchdog service
[Service]
User=wwwrun
Group=www
Type=simple
ExecStart=/usr/local/sbin/cai-watchdog
#ExecStopPost=/etc/cai-watchdog/on-stop
#ExecStopPost=send-telegram 'ATTENTION! Watchdog is stopped!'
KillMode=control-group
NotifyAccess=all
SuccessExitStatus=2
[Install]
WantedBy=multi-user.target
Alias=cai_watchdog