News for hackers. Stuff that matters.
Re:In emergency cases a passenger was selected and thrown ou... by derefr on Friday August 30, 2013 @07:57AM (#6301236)
I've never seen a process supervisor daemon that didn't have an "if process FOO exceeds X restarts in Y milliseconds, stop trying to start FOO" clause.
Re:In emergency cases a passenger was selected and thrown ou... by harrytuttle on Friday August 30, 2013 @08:00AM (#6301249)
You've never seen an "enterprise" software init script then. 5-nines? Stick it in an endless loop and no one will notice (Atlassian I'm looking at you).
Re:In emergency cases a passenger was selected and thrown ou... by ghc on Friday August 30, 2013 @09:09AM (#6301484)
I have written enterprise software. Guilty as charged.
Re:In emergency cases a passenger was selected and thrown ou... by X-Istence on Friday August 30, 2013 @10:45AM (#6302017)
Yeah, but looking at Atlassian is easy, for pete's sake they gave us shitty software like JIRA, Confluence and others... and I say that with a HUGE dislike of those products due to how obtuse they can be.
Re:In emergency cases a passenger was selected and thrown ou... by harrytuttle on Sunday September 01, 2013 @01:42PM (#6311270)
Fair point! Agree entirely by the way.
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...)
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.