Created
December 16, 2016 18:25
-
-
Save Jpuelpan/f0291e7d029a1a8e108a85d7c91d3369 to your computer and use it in GitHub Desktop.
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
# /etc/init/foreverinit.conf | |
#description "Forever process" | |
#start on startup | |
#stop on shutdown | |
#setuid myuser | |
#setgid myuser | |
#expect fork | |
#env NODE_BIN_DIR="/usr/local/bin" | |
#env NODE_PATH="/usr/local/lib/node_modules" | |
#env APPLICATION_PATH="/home/myuser/app/index.js" | |
#env PIDFILE="/home/myuser/app/tmp/pid.pid" | |
#env LOG="/home/myuser/app/log/app.log" | |
#env MIN_UPTIME="5000" | |
#env SPIN_SLEEP_TIME="2000" | |
#script | |
# PATH=$NODE_BIN_DIR:$PATH | |
# | |
# exec forever \ | |
# --pidFile $PIDFILE \ | |
# -a \ | |
# -l $LOG \ | |
# --minUptime $MIN_UPTIME \ | |
# --spinSleepTime $SPIN_SLEEP_TIME \ | |
# start $APPLICATION_PATH | |
#end script | |
#pre-stop script | |
# PATH=$NODE_BIN_DIR:$PATH | |
# exec forever stop $APPLICATION_PATH | |
#end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment