Advertisement
Guest User

Untitled

a guest
Feb 18th, 2010
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #! /bin/sh
  2. # /etc/init.d/blah
  3. #
  4.  
  5. # Some things that run always
  6. touch /var/lock/blah
  7.  
  8. # Carry out specific functions when asked to by the system
  9. case "$1" in
  10.   start)
  11.     echo "Starting Beanstalkd"
  12.     beanstalkd &
  13.     ;;
  14.   stop)
  15.     echo "Stopping Beanstalkd"
  16.     killall beanstalkd
  17.     ;;
  18.   *)
  19.     echo "Usage: /etc/init.d/blah {start|stop}"
  20.     exit 1
  21.     ;;
  22. esac
  23.  
  24. exit 0
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement