i  have  strange  problems with qmail smtp startup on my sun solaris 7
machine...
when i reboot sun qmail start but won't work properly
if i do
qmail stop
qmail start
all is work just fine...

init script:

PATH=$PATH:/usr/bin:/usr/local/bin:/var/qmail/bin:usr/sbin
USERID=102
GROUPID=100

case "$1" in
start)
        echo -n "Starting mail-transfer agent: qmail"

#ulimit -v 2048
csh -cf '/var/qmail/rc &'
supervise /var/lock/qmail-smtpd
tcpserver -v -x/etc/tcp.smtp.cdb -u$USERID -g$GROUPID 0 2\rblsmtpd
qmail-smtpd 2>&1 | setuser qmaill accustamp | \
setuser qmaill cyclog -s5000000 -n5 /var/log/qmail/qmail-smtpd &
echo "."
;;
stop)
echo -n "Stopping mail-transfer agent: qmail"
PID=`ps -eo pid,comm | awk '{ if ($2 == "qmail-send") print $1}'`
kill -TERM $PID
svc -dx /var/lock/qmail-smtpd
echo "."
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
echo "Reloading 'locals' and 'virtualdomains' control files."
PID=`ps -eo pid,comm | awk '{ if ($2 == "qmail-send") print $1}'`
kill -HUP $PID
;;
*)
echo 'Usage: /etc/init.d/qmail {start|stop|restart|reload}'
exit 1
esac

exit 0

� ������ ����� ��������:
  qmailq   252   240  0 00:36:04 ?        0:00 qmail-clean
  qmails   240     1  0 00:36:04 ?        0:00 qmail-send
    root   659   242  0 00:41:55 ?        0:00 supervise
/var/lock/qmail-smtpd tcpserver -v -x/etc/tcp.smtp.cdb -u102 -g100 0
    root   242     1  0 00:36:04 ?        0:00 supervise
/var/lock/qmail-smtpd tcpserver -v -x/etc/tcp.smtp.cdb -u102 -g100 0
  qmaill   249   240  0 00:36:04 ?        0:00 splogger qmail
    root   250   240  0 00:36:04 ?        0:00 qmail-lspawn ./Maildir/
  qmailr   251   240  0 00:36:04 ?        0:00 qmail-rspawn

�����
/etc/init.d/qmail stop
/etc/init.d/qmail start

qmaill   734     1  0 00:42:59 pts/1    0:00 cyclog -s5000000 -n5
/var/log/qmail/qmail-smtpd
  qmaild   731   729  0 00:42:59 pts/1    0:00
tcpserver -v -x/etc/tcp.smtp.cdb -u102 -g100 0 25 rblsmtpd qmail-smtpd
    root   729     1  0 00:42:59 pts/1    0:00 supervise
/var/lock/qmail-smtpd tcpserver -v -x/etc/tcp.smtp.cdb -u102 -g100 0
  qmailq   736   728  0 00:42:59 pts/1    0:00 qmail-clean
  qmaill   732     1  0 00:42:59 pts/1    0:00 accustamp
  qmaill   730   728  0 00:42:59 pts/1    0:00 splogger qmail
    root   733   728  0 00:42:59 pts/1    0:00 qmail-lspawn ./Maildir/
  qmails   728     1  1 00:42:59 pts/1    0:00 qmail-send
  qmailr   735   728  0 00:42:59 pts/1    0:00 qmail-rspawn


script auto-running from /etc/rc2.d/S99qmail...

where i'm wrong?
who can send to me right init script?
i'm novice in qmail and solaris...

Reply via email to