Created
August 31, 2014 12:35
-
-
Save SunDi3yansyah/33b83dd0fa2c5213aa1c to your computer and use it in GitHub Desktop.
sleep and wake up again
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
. /lib/lsb/init-functions | |
do_stop () { | |
log_action_msg "Will now restart" | |
reboot -d -f -i | |
} | |
case "$1" in | |
start) | |
;; | |
restart|reload|force-reload) | |
echo "Error: argument '$1' not supported" >&2 | |
exit 3 | |
;; | |
stop) | |
do_stop | |
;; | |
*) | |
echo "Usage: $0 start|stop" >&2 | |
exit 3 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment