:: Re: [Dng] Why daemontools is so coo…
Forside
Slet denne besked
Besvar denne besked
Skribent: Steve Litt
Dato:  
Til: dng
Emne: Re: [Dng] Why daemontools is so cool
On Sat, 28 Mar 2015 14:52:47 +0100
poitr pogo <lepoitr@???> wrote:

> Cannot.


Cannot what?

> This is from the s6 docs. I'm not using s6. Just heard about
> it today.


I sure can't accuse you of procrastinating in forming an opinion.

> Another s6 limitation - finish script must end in 3
> seconds. or will be killed.


I'm pretty sure that 3 seconds is for each "daemon's" finish script,
not for the whole of shutdown. What would be a better figure than 3
seconds? Have you ever had one of these computers that took a half hour
to shut down?


> Nice for desktop, not a server.


Because???

> It used to be that an application is responsible for proper start
> up/shutdown procedure, as application knows the proper way how to do
> it.


Yes. It's in the man page.

> Init script is just a place where to hook a startup/shutdown
> script to be executed when system needs to start/stop application in
> some automatic way.
>
> Now there are tools which help deamonize things.
> Depending how portable they are it make the price one has to pay when
> decides to use them instead of handling this yourself in the
> application.


Daemontools, daemontools-encore, runit, and s6 "daemonize" any program
that can run in the foreground. No need to mess around in the
application.

SteveT

Steve Litt                *  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance