Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [davidp@shakermaker:~]$ cat /etc/init.d/site-ijedomestics
- #! /bin/sh
- # Simple script for starting Dancer applications.
- SITENAME=ijedomestics
- PORT=5000
- DIR=/websites/ijedomestics
- SCRIPT=ijedomestics.pl
- USER=davidp
- PIDFILE=/var/run/site-$SITENAME.pid
- case "$1" in
- start)
- start-stop-daemon --start --chuid $USER --chdir $DIR \
- --pidfile=$PIDFILE \
- --exec /usr/local/bin/starman -- -p $PORT $SCRIPT -D --pid $PIDFILE
- ;;
- stop)
- start-stop-daemon --stop --pidfile $PIDFILE
- ;;
- *)
- echo "Usage: $SCRIPTNAME {start|stop}" >&2
- exit 3
- ;;
- esac
- :
Add Comment
Please, Sign In to add comment