LWN.net Logo

Poettering: The Biggest Myths

Poettering: The Biggest Myths

Posted Feb 1, 2013 21:54 UTC (Fri) by raven667 (subscriber, #5198)
In reply to: Poettering: The Biggest Myths by smurf
Parent article: Poettering: The Biggest Myths

There is an example of how this can work, although with less features and guarantees (no cgroups, no dependancies), with daemontools. You run the svscan daemon out of /etc/inittab which maintains a parent/child relationship and pipe with PID 1 so that it can be restarted should it fail and svscan fires off a separate supervise process for each daemon you want to manage. supervise maintains a parent/child relationship and pipe with its child process and will restart the child should it go away. If there is a log startup script then that is run as well and anything written to the childs stdout or stderr is forwarded to the stdin of the log daemon (usually multilog).

You can hack around many of the failures (lack of restart throttling for example by using sleep) but it's not feasible to hack around the lack of service dependency resolution and the fact that this is an add-on component and not part of the core OS so can't be relied upon to be there in most cases. There has been development and thought in the area of service management beyond SysV init in the last 15 years or so but there are real reasons why these systems like daemontools and runit haven't gained the traction that systemd has gained, because they are not as comprehensive and are technically inferior.


(Log in to post comments)

Poettering: The Biggest Myths

Posted Feb 2, 2013 10:02 UTC (Sat) by jospoortvliet (subscriber, #33164) [Link]

Now that is a lame reply. "Yeah, there IS a way to do it, it just can't actually do it". Just have the balls to say "ok, you're right". There is nothing wrong with changing your opinion/position based on evidence and good arguments, heck, it's been said that "people who never change their opinion only show that they never learn".

Poettering: The Biggest Myths

Posted Feb 2, 2013 14:17 UTC (Sat) by smurf (subscriber, #17840) [Link]

>> less features and guarantees (no cgroups, no dependancies), with daemontools

Which is why daemontools did not catch on.

(To be fair, daemontools predates cgroups – but then, this list of deficiencies WRT systemd is hardly exhaustive.)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds