Script to monitor clients and shutdown the server.
If there are no responses from the specified IP addresses after sending pings, execute a shutdown command.
Set the IP addresses, and schedule the script using cron.
Set the IP addresses of the target clients to monitor.
# Client IP Address List
client=(
"192.168.64.3"
"192.168.64.4"
"192.168.64.5"
)
Set the script to be executed periodically using cron.
Example of executing the script every 1 minute:
* * * * * /[absolute path]/ShutdownScript.sh >/dev/null 2>&1
This software is licensed under the Unlicense.