Forever daemonizes the processes, there is no need for screen. From the
README:
actions:
start Start SCRIPT as a daemon
stop Stop the daemon SCRIPT
stopall Stop all running forever scripts
restart Restart the daemon SCRIPT
restartall Restart all running forever scripts
list List all running forever scripts
...
[Daemon]
The forever process will run as a daemon which will make the target
process start
in the background. This is extremely useful for remote starting
simple node.js scripts
without using nohup. It is recommended to run start with -o -l, &
-e.
ex. forever start -l forever.log -o out.log -e err.log my-daemon.js
forever stop my-daemon.js
(bold added by me). I use this in production and it works fine.
-Chad
From: [email protected] [mailto:[email protected]] On Behalf
Of rhasson
Sent: Tuesday, October 16, 2012 11:22 AM
To: [email protected]
Subject: Re: [nodejs] Forever with ssh
use "screen"
On Tuesday, October 16, 2012 10:24:40 AM UTC-4, Chad Engler wrote:
Just use:
> forever start <script>
And see what is running:
> forever list
And stop a script:
> forever stop <index_or_script_name>
-Chad
-----Original Message-----
From: [email protected] <javascript:>
[mailto:[email protected] <javascript:> ] On Behalf
Of William Myers
Sent: Tuesday, October 16, 2012 2:53 AM
To: [email protected] <javascript:>
Subject: [nodejs] Forever with ssh
Is that a way to run forever in an ssh connection so that it continues
to run even after the connection has been severed?
Currently, I have only had success with $ nohup node app.js however I
would like to use forever and thought that it could be used like a
daemon tool to keep a process going.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
<javascript:> To
unsubscribe from this group, send email to
[email protected] <javascript:>
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en