Screen is really for having multiple terminals open with only 1
connection, and for working in a space that doesn't get destroyed if you
lose your connection. It isn't designed to keep a process running in a
production environment. Upstart, monit, forever, and other solutions
are.
-Chad
From:
nodejs@googlegroups.com On Behalf
Of Matt
Sent: Wednesday, October 17, 2012 2:29 PM
To:
nodejs@googlegroups.comSubject: Re: [nodejs] Forever with ssh
I'm no sysadmin, but I've created/worked on some extremely large systems
(thousands of machines) and nobody running anything in production
environments would ever use screen for keeping things running. It's just
not designed for that. It has horrendous potential scenarios for
disaster by people pressing the wrong keys. It doesn't deal with log
rotation or storage or timestamping. It doesn't deal with restarting
failed processes. It's designed for interactive use. It's in no way
designed as a secure keep-alive system for daemons.
Compare that to:
http://smarden.org/runit/benefits.htmlI think if you hired a sysadmin (at least one worth what you pay him) he
would replace your "screen" based system in a flash.
On the other hand, I do use screen for everything else, and have it
constantly logged in doing "tail -F" on all my logs, so I can instantly
see what's going on in real time and pause and scroll back those logs if
I need to. I just don't use it for keeping daemons running.
On Wed, Oct 17, 2012 at 12:59 PM, Jimb Esser wrote:
Is there a problem with running in "screen"? I've very little actual
Linux experience, but we've been very happy with running ours in
"screen", lets us trivially get both the aspects of a daemon, automatic
logging all output to one stream, and be able to connect to it
interactively when things need to be debugged. In general, we still
need something like runit to actually launch the screen'd node process,
and re-launch it if it fails, but I don't see why running in a screen
would be bad (but am by no means an expert =).
On Wednesday, October 17, 2012 6:33:02 AM UTC-7, Matt Sergeant wrote:
It does bother me a bit that people are running their node
daemons in "screen". Can I at least presume this isn't for production?
I highly recommend using runit - it restarts on failure and is
very simple to install and use, and handles logging (including
timestamping and log rotation), privilege dropping, and environment
variable setting.
On Wed, Oct 17, 2012 at 12:09 AM, Axel Kittenberger
wrote:
+2 for screen. I also run my node.js daemon in a
"screen".
On Tue, Oct 16, 2012 at 5:33 PM, Julian Lannigan
wrote:
+1 for screen >
some links:
>
http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/ >
>
>
>
On Tue, Oct 16, 2012 at 11:21 AM, rhasson
wrote:
>>
>>
>>
On Tuesday, October 16, 2012 10:24:40 AM UTC-4, Chad
Engler wrote:
>>>
>>>
>>>
>>>
>>>
>>>
forever stop <index_or_script_name>
>>>
>>>
-----Original Message-----
From: nod...@googlegroups.com
On Behalf
Of William Myers
Sent: Tuesday, October 16, 2012 2:53 AM
To: nod...@googlegroups.com
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.
>>>
>>>
https://github.com/joyent/node/wiki/Mailing-List-Posting-GuidelinesYou received this message because you are subscribed
to the Google
Groups "nodejs" group.
To post to this group, send email to
nod...@googlegroups.com To
>>
>>
https://github.com/joyent/node/wiki/Mailing-List-Posting-GuidelinesYou received this message because you are subscribed
to the Google
Groups "nodejs" group.
To post to this group, send email to
nod...@googlegroups.com
>
>
>
https://github.com/joyent/node/wiki/Mailing-List-Posting-GuidelinesYou received this message because you are subscribed
to the Google
Groups "nodejs" group.
To post to this group, send email to
nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
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-GuidelinesYou received this message because you are subscribed to
the Google
Groups "nodejs" group.
To post to this group, send email to
nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
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-GuidelinesYou received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to
nodejs@googlegroups.comTo unsubscribe from this group, send email to
nodejs+
unsubscribe@googlegroups.comFor 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-GuidelinesYou received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to
nodejs@googlegroups.comTo unsubscribe from this group, send email to
nodejs+
unsubscribe@googlegroups.comFor 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-GuidelinesYou received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to
nodejs@googlegroups.comTo unsubscribe from this group, send email to
nodejs+
unsubscribe@googlegroups.comFor more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en