-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I am working on a Node app that must:
-
run in the background,
-
disconnected from the terminal,
-
survives the terminal window being closed,
-
yet is easy to quit so I can run a new version.
The product will remain in active development at the same time it is deployed, for the foreseeable future.
It's running on Ubuntu 18.04.3 (LTS) x64 on digitalocean.com.
I am currently using nohup node appname.js &
to launch the app, and killAll node
, to terminate it, and the apps it launches.
This method seems pretty good. I am able to Control-C after launching the app and it keeps running in the background. It seems to survive closing the terminal and logging on again.
Curious to know what other devs think? What method do you use to launch and kill an app in the background when you're actively developing it?