I saw this too, put "exec" before tcpserver ----- Original Message ----- From: "Kyle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 9:38 PM Subject: LWQ Init Script/qmail-pop3d > List, > I recently decided to move my qmail-pop3d process out of inetd on my > RedHat 6.2 machine and under the control of daemontools like the rest of my > qmail processes. I installed semi-following LWQ, and making other changes > as I went. Daemontools and ucspi-tcp were installed from RPMs (if that > matters). I stopped qmail, created a directory under /var/qmail/ for > qmail-pop3d, and put in the necessary scripts (details at end of message). > I am using the LWQ SysVinit scripts, and added appropriate lines for > qmail-pop3d under the pause, cont, and restart sections. Since the > start/stop section just uses /var/qmail/supervise/* and > /var/qmail/supervise/*/log , it didn't look like I'd need to add qmail-pop3d > there. The problem is such: All features of the scripts work fine except > for start/stop. If I issue 'qmail stop', it kills off everything except > qmail-pop3d. What's worse is a few seconds later it restarts > qmail-send/qmail-smtpd, so it's more or less a restart now. I'm sure I > missed something, but I have no clue what. Any ideas as to how to make > qmail-pop3d behave in this script like qmail-send and qmail-smptd do ? TIA > > Kyle > > /var/qmail/supervise: > drwxr-xr-x 5 root root 4096 Feb 16 19:09 . > drwxr-xr-x 11 root qmail 4096 Feb 16 19:10 .. > drwxr-xr-t 4 root root 4096 Feb 16 19:21 qmail-pop3d > drwxr-xr-t 4 root root 4096 Nov 10 15:28 qmail-send > drwxr-xr-t 4 root root 4096 Feb 16 19:17 qmail-smtpd > > /var/qmail/supervise/qmail-pop3d: > drwxr-xr-t 4 root root 4096 Feb 16 19:21 . > drwxr-xr-x 5 root root 4096 Feb 16 19:09 .. > drwxr-xr-x 3 root root 4096 Feb 16 19:20 log > -rwxr-xr-x 1 root root 164 Feb 16 19:21 run > drwx------ 2 root root 4096 Feb 16 19:34 supervise > > /var/qmail/supervise/qmail-pop3d/run: > #!/bin/sh > > /usr/bin/tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup > mail.only-linux.com \ > /bin/checkpoppasswd /var/qmail/bin/qmail-pop3d Maildir 2>&1 > > (LWQ startup line, minus splogger (did I cut out too much?) and with > checkpoppasswd insted of checkpasswd) > > Parts of /etc/rc.d/init.d/qmail: > start) > echo -n "Starting qmail: svscan" > cd /var/qmail/supervise > env - PATH="$PATH" svscan & > echo $! > /var/run/svscan.pid > echo "." > ;; > stop) > echo -n "Stopping qmail: svscan" > kill `cat /var/run/svscan.pid` > echo -n " qmail" > svc -dx /var/qmail/supervise/* > echo -n " logging" > svc -dx /var/qmail/supervise/*/log > echo "." > ;; > pause) > echo "Pausing qmail-send" > svc -p /var/qmail/supervise/qmail-send > echo "Pausing qmail-smtpd" > svc -p /var/qmail/supervise/qmail-smtpd > echo "Pausing qmail-pop3d" > svc -p /var/qmail/supervise/qmail-pop3d > ;; > cont) > echo "Continuing qmail-send" > svc -c /var/qmail/supervise/qmail-send > echo "Continuing qmail-smtpd" > svc -c /var/qmail/supervise/qmail-smtpd > echo "Continuing qmail-pop3d" > svc -c /var/qmail/supervise/qmail-pop3d > ;; > restart) > echo "Restarting qmail:" > echo "* Stopping qmail-smtpd." > svc -d /var/qmail/supervise/qmail-smtpd > echo "* Sending qmail-send SIGTERM and restarting." > svc -t /var/qmail/supervise/qmail-send > echo "* Restarting qmail-smtpd." > svc -u /var/qmail/supervise/qmail-smtpd > echo "* Restarting qmail-pop3d." > svc -u /var/qmail/supervise/qmail-pop3d > ;; > > > -- > Kyle Knack > Server Engineer - SkyNetWEB/Affinity Internet > [EMAIL PROTECTED] > http://www.skynetweb.com > >