Created
June 20, 2012 19:27
-
-
Save jacobandresen/2961699 to your computer and use it in GitHub Desktop.
nodejitsu foreverd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
RX=/home/jacob/project/reindex | |
LOG=$RX/RxSIP/logs/rxsip.log | |
PATH=/opt/node/bin:/bin/:/usr/bin:/usr/sbin/:/sbin | |
DAEMON=$RX/RxSIP/daemon/sip.js | |
case "$1" in | |
start) forever start $DAEMON $LOG;; | |
stop) forever stop $DAEMON ;; | |
force-reload|restart) forever restart $DAEMON ;; | |
*) echo "[reindex sip2 dispatcher]" | |
echo "usage: /etc/init.d/rxsip (start|stop|restart|force-reload)" | |
exit 1 ;; | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment