Skip to content

Instantly share code, notes, and snippets.

/foobar.conf Secret

Created December 7, 2014 06:19
# only start this service after the httpd user process has started
start on started httpd-user
# stop the service gracefully if the runlevel changes to 'reboot'
stop on runlevel [06]
# run the scripts as the 'http' user. Running as root (the default) is a bad idea.
setuid http
# exec the process. Use fully formed path names so that there is no reliance on $PATH
# the 'www' file is a node.js script which starts the foobar application.
exec /usr/bin/node /volume2/code/foobar/bin/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment