reboot.sh 177 Bytes
Newer Older
1 2 3 4
#!/bin/sh

# simple wrapper for monit to announce reboot to console
echo "Monit triggered reboot due to $1" > /dev/console
5
echo "$1" > /update/monit_restart_reason
6
/sbin/reboot