15 lines
325 B
Desktop File
15 lines
325 B
Desktop File
[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
|