Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- # /etc/init.d/blah
- #
- # Some things that run always
- touch /var/lock/blah
- # Carry out specific functions when asked to by the system
- case "$1" in
- start)
- echo "Starting Beanstalkd"
- beanstalkd &
- ;;
- stop)
- echo "Stopping Beanstalkd"
- killall beanstalkd
- ;;
- *)
- echo "Usage: /etc/init.d/blah {start|stop}"
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement