[Avcheck] (re-send) DaemonTools problem with chroot'd kavdaemon

Ralf Hildebrandt Ralf.Hildebrandt@charite.de
Fri, 9 Nov 2001 06:45:41 +0100


On Thu, Nov 08, 2001 at 03:16:16PM -0800, Michael Kubecka wrote:

> Created a script called 'run' in /var/chroot/AVP:
> 
> exec 2>&1
> exec /usr/bin/env - HOME=/ \
> /usr/bin/nice \
> /usr/sbin/uchroot -u avdaemon /var/chroot/AVP \
> /kavdaemon -dl -MP -f=/ctl /tst > /dev/null

But kavdaemon goes into the background!

> Created a 'run' script in /var/chroot/AVP/log directory:
> 
> exec 2>&1
> exec setuidgid avdaemon multilog t ./main

Does avdaemon log to stdout? OK, if it loads the patterns.

> Daemon Tools keeps trying to spawn another kavdaemon... the real
> kavdaemon is in place, but (kavdaemon) keeps trying to spawn...

You haven't understood how daemontools work. The daemon MUST stay in the
foreground. If it backgrounds, daemontools loses control and restarts
kavdaemon.
Maybe you need fghack.

-- 
Ralf Hildebrandt                            Tel.  +49 (0)30-450 570-155
                                            Fax.  +49 (0)30-450 570-916
"One smaller motivation which, in part, stems from altruism is
Microsoft-bashing."            - Vinod Valloppillil (Microsoft)