I have a simple meteor app that I'm running on an Amazon EC2 server. Everything is working great. I start it manually with my user via meteor
in the project directory.
However, what I would like is for this app to
- Run on boot
- Be immune to hangups
I try running it via nohup meteor &
, but when I try to log out of the EC2 instance, I get the "You have running jobs" message. Continuing to log out stops the app.
How can I get the app to start on startup and stay up (unless it crashes for some reason)?