[lug] Writing supervise scripts
Ferdinand Schmid
fschmid at archenergy.com
Sun Jun 3 21:51:52 MDT 2001
To the best of my knowledge supervise is not meant to be used with
daemons or any kind of background processes. Zombies is what you will
get - that is what I remember from Bernstein's documentation. Supervise
is designed to run applications and the moment you run them within
supervise they go into the background.
Why aren't you using inetd (or xinetd) and inittab to run your system
daemons? You can use respawn in inittab if you are worried about
processes dying.
Finding documentation for supervise is like pulling teeth although I
remember looking at some of the examples to be quite helpful.
Ferdinand
John Starkey wrote:
>
> Hello all.
>
> I've been moving everything over to daemontools. But several of my
> scripts, which are just dupes of the startup commands are producing
> Zombies left and right. Like a simple:
>
> #!/bin/bash
>
> exec '/usr/bin/imapd/imapd'
>
> Is dieing and leaving zombies while restarting. I killed the running
> process completely and stopped supervise imap and tried again... still
> zombies. Running that command by itself works fine.
>
> Anyone know of a good tutorial or page on writing scripts and how
> supervise works? The daemontools page is really only focused on the app.
> Not much in the way of working with daemons in general. I've consulted
> google and several mailing list archives to now avail.
>
> Thanks,
>
> John
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list