Re: Daemontools keeps restarting w/ stdout

[email protected] (Paul Jarc) Wed, 11 Feb 2009 23:33:12 -0500
Newsgroups gmane.comp.djb.syslog
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
Stephen Corona <[email protected]> wrote:
> #!/bin/sh
> exec /usr/local/bin/scribed /vm/scribed/scribed.conf
>
> It will only run if I change it to this:
>
> #!/bin/sh
> exec /usr/local/bin/scribed /vm/scribed/scribed.conf 1>/dev/null

Try this from the command line:
/usr/local/bin/scribed /vm/scribed/scribed.conf | cat

If that fails, then you have a problem specific to scribed, unrelated
to daemontools, except in that daemontools happens to run it with
stdout connected to a pipe.  A forum for scribed could better help you
getting it to work in that circumstance.

> I also tried setting up a logger w/ daemon tools using multilog but
> experienced the same programs.

Do you mean that the logger also exits, or that setting up the logger
didn't stop scribed from exiting?  Does anything show up in the logs?

Note that if the "log" subdirectory didn't exist when the service was
first started, then svscan won't try to start the logger when you
create it.  You'll have to restart svscan (typically by rebooting) to
get it to notice the log directory.


paul