On Tue, 19 May 2009, J wrote:

I reinstalled clean, from scratch.

I changed my 'run' file to the following:

====================
#!/bin/sh
exec 2>&1 \
sh -c '
   exec \
       /usr/local/bin/softlimit -m 100000000 \
       ${PERL-perl} -T ./qpsmtpd-prefork \
       --port 25 \
       --port 587 \
       --children 30 \
       --idle-children 5 \
       --pid-file /var/run/qpsmtpd.pid \
       --renice-parent 5 \
       --detach \
       --max-from-ip 10 \
       --user smtpd
'

You're not setting $PERL, do you don't need to use sh -x.

You don't want --detach either - supervise won't provide a controlling terminal, and you mustn't daemonise.

You also don't need --pid-file with supervise/runit.

So try:

#!/bin/sh
exec 2>&1 \
exec \
        /usr/local/bin/softlimit -m 100000000 \
        /usr/bin/perl -T ./qpsmtpd-prefork \
        --port 25 \
        --port 587 \
        --children 30 \
        --idle-children 5 \
        --renice-parent 5 \
        --max-from-ip 10 \
        --user smtpd

Reply via email to