Created
November 21, 2013 14:36
-
-
Save Morgul/7582598 to your computer and use it in GitHub Desktop.
A small upstart script I can use as a template. Edit it, and put it in /etc/init.
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
#!upstart | |
description "My Application's description here." | |
author "Chris Case <[email protected]>" | |
# Depending on what this is, you mat consider `start on started network-services` | |
start on startup | |
# May not need a stop on clause | |
stop on shutdown | |
respawn | |
# Should probably setuid to whatever _unprivledged_ user was setup to run this app, like `www-data`. | |
setuid root | |
script | |
cd /opt/docserver/dox-generator | |
exec npm start | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment