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: [email protected] [mailto:[email protected]] On Behalf
Of Matt
Sent: Wednesday, October 17, 2012 2:29 PM
To: [email protected]
Subject: 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.html

 

I 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 <[email protected]>
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
<[email protected]> 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

                <[email protected]> wrote:
                > +1 for screen
                >
                > some links:
                >
http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/
                > http://www.gnu.org/software/screen/manual/screen.html
                >
                > Julian Lannigan
                >
                >
                >
                >

                > On Tue, Oct 16, 2012 at 11:21 AM, rhasson
<[email protected]> wrote:
                >>
                >> 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]
[mailto:[email protected]] On Behalf
                >>> Of William Myers
                >>> Sent: Tuesday, October 16, 2012 2:53 AM
                >>> To: [email protected]
                >>> 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] 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
                >
                >
                > --
                > 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

         

-- 
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]
<mailto:nodejs%[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

-- 
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

Reply via email to