Re:In emergency cases a passenger was selected and thrown ou...
by viraptor on Friday August 30, 2013 @08:13AM
(#6301288)
daemontools / supervise doesn't have it and it's a fairly popular solution. (not that I recommend ever using it...)
[ Parent
| on HN ]
Re:In emergency cases a passenger was selected and thrown ou...
by DigitalBison on Friday August 30, 2013 @11:08AM
(#6302144)
> daemontools / supervise doesn't have it and it's a fairly popular solution.
Ok, it doesn't exactly support the quoted feature ("stop restarting if it exceeds X attempts in Y seconds"), but it does sleep for a second between restart attempts to mitigate the same problem: http://cr.yp.to/daemontools/supervise.html
Re:In emergency cases a passenger was selected and thrown ou...
by pmahoney on Friday August 30, 2013 @06:07PM
(#6304525)
I'm curious why you wouldn't recommend it. I've never used it myself, but I've been reading about it the past few weeks. The design seems really well done compared to init.d scripts in the sense that every init script must reimplement daemonization, pid files, etc. (which is helped by examples, start-stop-daemon, etc. but is still a huge and delicate chore in my experience).
Is your objection that daemontools is largely unused / unmaintained and lacks features (such as flapping-avoidance)? Or something else?
Just curious, thanks.
Re:In emergency cases a passenger was selected and thrown ou...
by viraptor on Friday August 30, 2013 @06:19PM
(#6304573)
It's mostly about the lack of features. No support for cgroups, user switching, adjustable backoff, syslog, etc. Sure - it works, but it's the same thing as with qmail - it's the very minimum that you can call a useful SMTP deaemon. The moment you want any feature on top, you have to implement it yourself.
Either one of upstart, systemd, supervisord will give you equivalent solution that has more practical features. Daemontools was good enough a couple of years ago. (I used it then happily)
In short - there's nothing wrong with it really, but many alternatives are much better.