Skip to content

Instantly share code, notes, and snippets.

@JohnProg
Created April 5, 2016 20:04
Show Gist options
  • Save JohnProg/5f5212c5e0900e9157a155732668b002 to your computer and use it in GitHub Desktop.
Save JohnProg/5f5212c5e0900e9157a155732668b002 to your computer and use it in GitHub Desktop.
upstart
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
setuid ubuntu
chdir /opt/myAplicacion
env PORT=3000
exec npm start
@JohnProg
Copy link
Author

JohnProg commented Apr 5, 2016

Move myOwnService.conf in /etc/init/ because in there there are the services upstart.

Run app:
service myOwnService start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment