Create ping watchdog

This commit is contained in:
iamromulan
2024-04-29 23:00:27 -04:00
parent 631ab97a9c
commit 906688f458
2 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Ping Watchdog Service
Wants=network.target
After=network.target
[Service]
Type=simple
ExecStartPre=/bin/sleep 60 # Sleep for 60 seconds to ensure the network is ready
ExecStart=/usrdata/simpleadmin/console/services/ping_watchdog.sh
Restart=on-failure
RestartSec=30s
[Install]
WantedBy=multi-user.target