Created
April 5, 2016 20:04
-
-
Save JohnProg/5f5212c5e0900e9157a155732668b002 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
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
setuid ubuntu | |
chdir /opt/myAplicacion | |
env PORT=3000 | |
exec npm start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Move myOwnService.conf in /etc/init/ because in there there are the services upstart.
Run app:
service myOwnService start