Skip to content

Instantly share code, notes, and snippets.

@gilchris
Last active July 28, 2016 01:14
Show Gist options
  • Save gilchris/09d4ec6f0293074f92973659eec9f37f to your computer and use it in GitHub Desktop.
Save gilchris/09d4ec6f0293074f92973659eec9f37f to your computer and use it in GitHub Desktop.
ShellScript Skeleton for service start and stop
#/bin/sh
case "$1" in
start)
;;
stop)
;;
restart)
$0 stop
$0 start
exit $?
;;
*)
echo "Usage: $0 {start|stop|restart}"
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment