Skip to content

Instantly share code, notes, and snippets.

@damm
Created September 25, 2009 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damm/193665 to your computer and use it in GitHub Desktop.
Save damm/193665 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Copyright: Nobody
# Author: Noone
# Year: ?
# License: Free
start() {
chef-client -i 1800 --splay 60 &
}
stop() {
pskill chef-client
}
restart() {
stop()
sleep 10
start()
}
# main()
case "${1:-''}" in
'start')
start()
;;
'stop')
stop()
;;
'restart')
restart()
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment