Created
August 9, 2012 23:11
-
-
Save simianhacker/3308895 to your computer and use it in GitHub Desktop.
Upstart template for Node.js
This file contains 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
description "Node server for #{application} (#{node_env})" | |
start on (net-device-up | |
and local-filesystems | |
and runlevel [2345]) | |
stop on runlevel [016] | |
script | |
exec sudo -u nobody sh -c "NODE_ENV=#{node_env} #{path_to_node} #{script_name}" | |
end script | |
respawn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment