Disclaimer: I don't use FreeBSD.

t_oo wrote:
> i've tryed to installed qmail 1.03 according "Life with qmail"
> http://www.lifewithqmail.org/lwq.html instructions on FreeBSD4.0, but
script
> /var/qmail/supervise/qmail-smtpd/run reporting errors:
>
> bash-2.03# /var/qmail/supervise/qmail-smtpd/run
> softlimit: usage: softlimit [-a allbytes] [-c corebytes] [-d databytes]
> [-f filebytes] [-l lockbytes]
> [-m membytes] [-o openfiles] [-p processes] [-r residentbytes] [-s
stackbytes]
> [-t cpusecs] child
>
> script /var/qmail/supervise/qmail-send/run reoprts:
>
> bash-2.03# /var/qmail/supervise/qmail-send/run
> env: illegal option -- P
> usage: env [-] [-i] [name=value ...] [command]
>
> scripts:
>
> ------------------------------
> /var/qmail/supervise/qmail-smtpd/run script
> ------------------------------
>
> #!/bin/sh
>
> QMAILDUID=`id -u qmaild`
>
> NOFILESGID=`id -g qmaild`
>
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
>
> exec /usr/local/bin/softlimit -m 2000000 \
>
>     /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
>
>         -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd
2>&1

Do you really have an extra line break between each line of this script?  If
so, there's your problem.  Remove the extra line breaks, or at least just
the ones after "exec", and you should be alright.

> ------------------------------------
> /var/qmail/supervise/qmail-send/run script
> -----------------------------------
> #!/bin/sh
>
> exec /var/qmail/rc

This merely calls another script, /var/qmail/rc.  You'll have to check the
contents of that script to find where the error is.  Incidentally, it looks
like you have an extra line-break here too, though in this case it's not
hurting anything.

---Kris Kelley

Reply via email to