Hello Tom,

Tom Collins wrote:
Look at the config.h for vpopmail, search for the definition of PS_COMMAND.

It does say

#define PS_COMMAND "ps axww"

Can you send the output of that command? The vpopmail problem is related to the function that parses the output of ps to find the qmail-send task so it can send a SIGHUP to it.

A possible fix -- edit vpopmail.c and change the following code:

      if ( tmppid != mypid ) {
        kill(tmppid,sig_num);
      }

to:

      if ( tmppid && (tmppid != mypid) ) {
        kill(tmppid,sig_num);
      }

This should eliminate what you're seeing -- vpopmail calling kill() with 0 for the PID. We should find out why it's doing that though...

I changed it and it works now. Thanks.

It could be that the error occured because my server ran out of hdd space. So it seems. Here are the lines that might interest you:

$ ps axww | egrep -v "mysql|httpd|courier|authd|xinet|imap"
PID TTY STAT TIME COMMAND
1 ? S 0:20 init
26185 ? S 0:02 syslogd -m 0
26203 ? S 0:13 /usr/sbin/sshd
26444 ? S 0:05 /usr/local/bin/python2 /usr/bin/tmda-ofmipd -p 0.0.0.0:8025 -R pop3://localhost
26470 ? S 0:00 /bin/sh /command/svscanboot
26472 ? S 0:49 svscan /service
26473 ? S 0:00 readproctitle service errors: ...s?svscan: warning: unable to read directory: system cannot open more files?svscan: warning
: unable to read directory: system cannot open more files?svscan: warning: unable to read directory: system cannot open more files?svscan: warning: un
able to stat qmail-send: out of memory?svscan: warning: unable to stat qmail-smtpd: out of memory?svscan: warning: unable to stat qmail-pop3d: out of
memory?
26474 ? S 0:00 supervise qmail-send
26475 ? S 0:00 supervise log
26476 ? S 0:00 supervise qmail-smtpd
26478 ? S 0:00 supervise log
26479 ? S 0:00 supervise qmail-pop3d
26481 ? S 0:00 supervise log
26483 ? S 0:09 multilog t s100000 n20 /var/log/qmail/qmail-pop3d
26484 ? S 0:11 tcpserver -H -R -v -c100 0 110 qmail-popup example.com /home/vpopmail/bin/vchkpw qmail-pop3d Maildir
28507 ? T 0:00 ../bin/vdeldomain example.com
28509 ? Z 0:00 [ps <defunct>]
12522 ? T 0:00 /home/vpopmail/bin/vadddomain example.com 123
12524 ? Z 0:00 [ps <defunct>]
19857 ? S 0:00 qmail-popup example.com /home/vpopmail/bin/vchkpw qmail-pop3d Maildir
19858 ? S 0:00 qmail-pop3d Maildir
30561 ? S 0:00 /usr/sbin/fcgi- -DSSL
30931 ? S 0:01 /usr/sbin/sshd
30933 pts/3 S 0:00 -bash
6347 ? S 0:00 qmail-send
6348 ? S 0:00 /usr/local/bin/tcpserver -v -R -l example.com -x /etc/tcp.smtp.cdb -c 20 -u 522 -g 518 0 smtp /var/qmail/bin/qmail-sm
tpd example.com /home/vpopmail/bin/vchkpw /usr/bin/true
6349 ? S 0:00 multilog t s100000 n20 /var/log/qmail/qmail-smtpd
6358 ? S 0:00 qmail-lspawn ./Maildir
6359 ? S 0:00 qmail-rspawn
6360 ? S 0:00 qmail-clean
11596 ? S 0:00 qmail-popup example.com /home/vpopmail/bin/vchkpw qmail-pop3d Maildir
11597 ? S 0:00 qmail-pop3d Maildir
14594 ? S 0:00 multilog t s100000 n20 /var/log/qmail/qmail-send
17734 ? S 0:00 /var/qmail/bin/qmail-smtpd example.com /home/vpopmail/bin/vchkpw /usr/bin/true
18689 pts/3 R 0:00 ps axww


I substitued domain names into example.com

It is only an uneducated guess of mine, but it could be that when some error occurs getting info out of ps axww is not reliable? Maybe there is another way of getting it, if it is at all necessary. Otherwise the add and del commands shouldn't be dependend on a running process anyway, right?

Thanks for helping
--
Sascha Ebach               Digitale Wertschöpfung
Hugo-Junkers-Str. 26       50739 Köln
Tel: 0221 / 5994393        Fax: 0221 / 5994394
mailto:[EMAIL PROTECTED]
Web: http://www.digitale-wertschoepfung.de



Reply via email to