Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ROOT=/webs/services/puller
- PIDFILE=/var/run/puller.pid
- start () {
- $ROOT/config.ru --port=1000 --env=production --daemonize --pid $PIDFILE
- }
- stop () {
- kill -9 $(cat $PIDFILE)
- }
- case "$1" in
- start|"")
- start ;;
- restart)
- stop && start ;;
- stop)
- stop ;;
- *)
- echo "Usage: $0 [start|restart|stop]" >&2
- exit 1
- ;;
- esac
Add Comment
Please, Sign In to add comment