On Sun, Aug 19, 2001 at 11:09:39PM +0200, Florian Heiderich wrote:
> Lukas Beeler wrote:
> >
> > supervise doesn't use any cpu time ( still 0:00 after nearly 60 days up)
> > my load is alway below 0.10. Most probably one of your startup scripts
> > is wrong, and that causes supervise to repedeatly try to run the file,
> > which causes the load. Check your run files, and listen what
> > showproctitle says (only in daemontools 0.75 up (i think ))
>
> I think, maybe the qmail-pop3d/run file is wrong, because the process
> table looks a bit strong:
[snip]
>
> Here is my run-script. Are there any errors?
> #!/bin/sh
> /usr/local/bin/softlimit -m 2000000 \
> /usr/local/bin/tcpserver -H -R 0 110 /var/qmail/bin/qmail-popup \
> host.domain /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d
> Maildir &
Yes, you're missing the 'exec' call in your run file. All processes
started by supervise need to be called with an 'exec' in front --
otherwise "/bin/sh" remains the child process of supervise, not
tcpserver as you want.
GW