linux - How to run process as background and never die? -
i connect linux server via putty ssh. tried run background process this:
$ node server.js &
however, after 2.5 hrs terminal becomes inactive , process dies. there anyway can keep process alive terminal disconnected?
edit 1
actually, tried nohup
, close putty ssh terminal or unplug internet, server process stops right away.
is there have in putty?
edit 2 (on feb, 2012)
there node.js
module, forever. run node.js server daemon service.
simple solution (if not interested in coming process, want keep running):
nohup node server.js &
powerful solution (allows reconnect process if interactive):
screen
also consider newer alternative screen, tmux.
Comments
Post a Comment