I'm running RedHat 6.2.

I seem to be having problems with daemontools, and the supervise
scripts.

I'm trying to run daemontools-0.76.  I installed it by
   $ cd /usr/admin/daemontools-0.76
and then
   $ ./package/install

I then linked in the 2 directories, 
    /var/qmail/supervise/qmail-smtpd
and
    /var/qmail/supervise/qmail-send
into the /service directory.  I created those directories and files
using Dave Sill's "Life with qmail" as a guide.

When I uncomment the 
   SV:123456:respawn:/command/svscanboot
that was placed in my /etc/inittab file and restart with a
   $ kill -HUP 1
I will end up with the following processes:
root     32689  0.3  0.5  1652  764 ?        S    11:20   0:00 sh /command/svscanboot
root     32691  0.3  0.2  1124  348 ?        S    11:20   0:00 svscan /service
root     32692  0.0  0.2  1080  284 ?        S    11:20   0:00 readproctitle service 
errors:
.......................................
root     32693  0.0  0.2  1088  324 ?        S    11:20   0:00 supervise qmail-smtpd
root     32694  0.0  0.2  1088  324 ?        S    11:20   0:00 supervise log
root     32695  0.0  0.2  1088  324 ?        S    11:20   0:00 supervise qmail-send
root     32696  0.3  0.2  1088  324 ?        S    11:20   0:00 supervise log
qmaill   32698  0.3  0.2  1100  316 ?        S    11:20   0:00 /usr/local/bin/multilog 
t
/var/log/qmail
qmails   32699  0.3  0.3  1140  392 ?        S    11:20   0:00 qmail-send
qmaill   32700  0.3  0.2  1100  316 ?        S    11:20   0:00 /usr/local/bin/multilog 
t
/var/log/qmail/smtpd
qmaill   32701  0.0  0.3  1112  424 ?        S    11:20   0:00 splogger qmail
root     32702  0.0  0.2  1100  340 ?        S    11:20   0:00 qmail-lspawn ./Maildir/
qmailr   32703  0.3  0.2  1100  340 ?        S    11:20   0:00 qmail-rspawn
qmailq   32704  0.0  0.2  1092  348 ?        S    11:20   0:00 qmail-clean
root     32707  0.0  0.0     0    0 ?        Z    11:20   0:00 [supervise <defunct>]


Then when I use "Life with qmail" startup script I'll do a
    $ qmailctl start
and end up 
root     32689  0.0  0.5  1652  764 ?        S    11:20   0:00 sh /command/svscanboot
root     32691  0.0  0.2  1124  348 ?        S    11:20   0:00 svscan /service
root     32692  0.0  0.2  1080  284 ?        S    11:20   0:00 readproctitle service 
errors: ...
unable to start qmail-smtpd/run: ex
root     32693  0.0  0.2  1088  324 ?        S    11:20   0:00 supervise qmail-smtpd
root     32694  0.0  0.2  1088  324 ?        S    11:20   0:00 supervise log
root     32695  0.0  0.2  1088  324 ?        S    11:20   0:00 supervise qmail-send
root     32696  0.0  0.2  1088  324 ?        S    11:20   0:00 supervise log
qmaill   32698  0.0  0.2  1100  316 ?        S    11:20   0:00 /usr/local/bin/multilog 
t
/var/log/qmail
qmails   32699  0.0  0.3  1140  392 ?        S    11:20   0:00 qmail-send
qmaill   32700  0.0  0.2  1100  316 ?        S    11:20   0:00 /usr/local/bin/multilog 
t
/var/log/qmail/smtpd
qmaill   32701  0.0  0.3  1112  424 ?        S    11:20   0:00 splogger qmail
root     32702  0.0  0.2  1100  340 ?        S    11:20   0:00 qmail-lspawn ./Maildir/
qmailr   32703  0.0  0.2  1100  340 ?        S    11:20   0:00 qmail-rspawn
qmailq   32704  0.0  0.2  1092  348 ?        S    11:20   0:00 qmail-clean
root       594  0.0  0.0     0    0 ?        Z    11:25   0:00 [supervise <defunct>]


Note the error "unable to start qmail-smtpd/run: ex".  Note also, that
tcpserver is not started in any of this.

When I manually run "/service/qmail-smtpd/run" tcpserver does start.
"/service/qmail-smtpd/run", which was taken from "Life with qmail", has
the following in it:
******
ILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 2000000 \
    /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
        -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1
******

This is driving me nuts.  What am I missing?
   === Al


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to