Keeping a daemon running?

Jorge Almeida jjalmeida at gmail.com
Tue Jan 12 12:51:26 PST 2010


On Tue, Jan 12, 2010 at 7:36 PM, Michael Hipp <Michael at hipp.com> wrote:
> I have servers with a couple of daemons that regularly seem to silently die
> off. It would be great to have some tool that would detect this fault
> condition and dutifully restart them. I know such things exist, was
> wondering if anyone here could recommend something that does this?
>
daemontools is the way, at least if you mean "services" rather than
daemons. If your service has an option of writing logs to stderr and
not to put himself on the background, than that's it. You might want
to have a look at www.thedjbway.org, which leads you by the hand.

(It is also a good idea to compile daemontools against dietlibc: your
services will be immune against bad things happening when upgrading
glibc and such.)

Jorge



More information about the Linux-users mailing list