
maslak at ihlas
Nov 5, 2007, 12:13 PM
Post #4 of 7
(2344 views)
Permalink
|
However, the queue(/var/qmail/bin/qmail/qstat) is 0, svc is not able to stop qmail-smtpd. However I run "svc -d /var/qmail/supervise/qmail-smtpd" svc couldn't stop it; ps aux |grep tcp vpopmail 67665 0.0 0.1 2444 1344 ?? I 10:04PM 0:00.00 /usr/local/bin/tcpserver -v -R -l 0 -x /var/qmail/vpopmail/etc/tcp ee /var/qmail/supervise/qmail-smtp/run #!/bin/sh /usr/local/bin/tcpserver -v -R -l 0 -x /var/qmail/vpopmail/etc/tcp.smtp.cdb -c 20 -u 89 -g 89 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 ee /var/qmail/supervise/qmail-smtp/log/run #!/bin/sh PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin export PATH exec setuidgid qmaill multilog t s1000000 n20 /var/log/qmail/qmail-smtpd 2>&1 ls -l /var/qmail/supervise drwxr-xr-t 4 root qmail 512 Nov 4 14:34 qmail-pop3d drwxr-xr-t 4 root qmail 512 Nov 4 14:34 qmail-send drwxr-xr-t 4 root qmail 512 Nov 5 20:18 qmail-smtpd ls -l /var/qmail/supervise/qmail-smtpd drwxrwxrwx 3 root qmail 512 Nov 4 14:34 log -rwxr-x--x 1 root qmail 705 Nov 5 20:23 run drwxrwxrwx 2 root qmail 512 Nov 5 22:05 supervise ls -l /var/qmail/supervise/qmail-smtpd/log -rwxr-x--x 1 root qmail 149 Nov 4 23:06 run drwxrwxrwx 2 root qmail 512 Nov 5 22:05 supervise But I have no problem qmail-send and qmail-pop3d. svc can stop them. ----- Original Message ----- From: "John Simpson" <jms1 [at] jms1> To: <qmail [at] list> Sent: Monday, November 05, 2007 5:58 AM Subject: Re: I have a problem about svc > On 2007-11-04, at 1708, Halid Faith wrote: > > > > I use svc command to start or stop qmail's services. > > I can start qmail's smtp and pop3 services with svc. > > But I couldn't stop qmail-smtp service with svc. I don't get any > > error message. > > What's wrong with it? > > nothing. > > when you run the "svc -d" command, all you're doing is sending a > SIGNAL to qmail-send, telling it to stop. qmail-send will continue to > run until all current deliveries are finished- it won't start any new > deliveries, but it will wait until all qmail-local and qmail-remote > processes are finished. > > if you're really in a hurry and absolutely have to make it stop "right > now" for some reason, try "killall qmail-remote" after sending the > "svc -d" command, and wait a few seconds for qmail-send to recognize > those deliveries as "failed", and it will stop by itself. > > DO NOT kill the qmail-send process unless there's something really > serious going on- serious meaning "the building is on fire". this is > an easy way to make qmail-send become very confused when it starts > back up. AT BEST you'll have messages delivered multiple times. > > ---------------------------------------------------------------- > | John M. Simpson --- KG4ZOW --- Programmer At Large | > | http://www.jms1.net/ <jms1 [at] jms1> | > ---------------------------------------------------------------- > | http://video.google.com/videoplay?docid=-1656880303867390173 | > ---------------------------------------------------------------- > > > >
|