Now you can run script on watchdog startup. File structure changed on *nix. Some changes in config file and scripts, please check on upgrade.
18 lines
339 B
Desktop File
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 |