Advertisement
pcwizz

Application init script in progress

Sep 1st, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #! /bin/sh
  2. # /etc/init.d/pcwizzltd_website
  3.  
  4. PROGRAM = /home/morgan/pcwizzltd_website/pcwizzltd_website
  5.  
  6. case "$1" in
  7.     start)
  8.         $PROGRAM &
  9.         PID = $!
  10.         echo "Starting pcwizzltd_website (pid:$PID)"
  11.         ;;
  12.     stop)
  13.         echo "Stopping pcwizzltd_website (pid:$PID)"
  14.         kill $PID
  15.         ;;
  16.     *)
  17.     echo "Usage /etc/init.d/pcwizzltd_website {start|stop}"
  18.     exit 1
  19.     ;;
  20. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement