-
-
Save shahzaibalikhan/6968d61acc3b534cb440149c70490da0 to your computer and use it in GitHub Desktop.
upstart
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 "Server Name | |
author "author" | |
start on (local-filesystems and net-device-up IFACE=eth0) | |
stop on shutdown | |
respawn | |
exec sudo -u ubuntu sh -c "NODE_ENV=production node /var/sites/stuff/app.js >> /var/log/stuff.log 2>&1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment