How to run as background process
Use nohup command
How to run
1
$ setsid nohup npm run start > app.log 2>&1 &2
$ ps -aux | grep "npm run start"3
$ cat app.logHow to end
$ ps -ef | grep "npm run start"
[1] [Your PID]
$ kill -TERM [Your PID]If you are using node app
1
$ npm install -g forever2
$ forever start app.js3
$ forever listAn app that uses npm start
1
2
3
Last updated