Dear all,

I'd a problem that drives me to nuts. >_<
I'm running daemontools0.7 on qmail. Following are the structures of my run files:

/service/qmail-send/run
/service/qmail-send/log/run
/service/qmail-smtpd/run
/service/qmail-smtpd/log/run

which /service/* was symbolic linked to /var/qmail/supervise/*, however every time 
when I restarted my machine, the /service/qmail-send/run suddenly disappear!!!

Following are the run file content:
/service/qmail-send/run

#! /bin/sh
exec /var/qmail/rc

/service/qmail-send/log/run

#!/bin/sh
SETUIDGID=/usr/local/bin/setuidgid      # directory for setuidgid
MULTILOG=/usr/local/bin/multilog        # directory for multilog
PROG=smtpd
LOGDIR=/var/log/qmail                  # directory for qmail-send log
LOGUSER=qmaill                          # user to own logs
LOGNUM=10                                # number of log files.
LOGSIZE=5000000                          # maximum file size for log files.

exec $SETUIDGID $LOGUSER $MULTILOG t n$LOGNUM s$LOGSIZE $LOGDIR

/service/qmail-smtpd/run

#!/bin/sh

QMAILHOME=/var/qmail
USERID=`id -u qmaild`
GROUPID=`id -g qmaild`
COMMAND=qmail-smtpd
PORT=smtp
CONCURRENT=70
BYTESIZE=2000000        # Limit data segment, stack segment, locked physical pages, 
and total of all segements per process to BYTESIZE.
SOFTLIMIT=/usr/local/bin/softlimit # directory for softlimit
TCPSERVER=/usr/local/bin/tcpserver # directory for tcpserver

exec $SOFTLIMIT -m $BYTESIZE \
    $TCPSERVER -vHR -c$CONCURRENT -P \
        -u $USERID -g $GROUPID 0 $PORT $QMAILHOME/bin/$COMMAND 2>&1

/service/qmail-smtpd/log/run

#!/bin/sh
# This is the run file for supervise to execute the qmail-smtpd's log.

SETUIDGID=/usr/local/bin/setuidgid      # directory for setuidgid
MULTILOG=/usr/local/bin/multilog        # directory for multilog
PROG=smtpd
LOGDIR=/var/log/qmail/$PROG             # directory for qmail-smtpd log
LOGUSER=qmaill                          # user to own logs
LOGNUM=10                               # number of log files
LOGSIZE=5000000                          # maximum file size for log files

exec $SETUIDGID $LOGUSER $MULTILOG t n$LOGNUM s$LOGSIZE $LOGDIR

One more thing I would like to mention is that only the /service/qmail-send/run file 
it disappear, other three run files are working fine after reboot.

Any comments are highly appreciated.

Thanks & regards,
Eric
-- 

_______________________________________________
Get your free email from http://freemail.asiamail.com

Reply via email to