The startup scripts for Mandrake (and RedHat, SuSE for that matter) are all in
/etc/rc.d/init.d/ . You have to place the tcpserver init script in that
directory.
My own script (tcpserver) looks like this:
-----------------------------------
#!/bin/sh
# tcpserver startup script
export PATH="$PATH:/usr/local/bin"
case "$1" in
start)
echo -n "Starting tcpserver: qmail-smtpd: "
exec tcpserver -x /etc/tcp.smtp.cdb -u 502 -g 501 0 smtp
/var/qmail/bin/qmail-smtpd &
echo "done"
;;
stop)
echo -n "Shutting down tcpserver: "
killall tcpserver
echo "done"
;;
*)
echo "Usage: tcpserver {start|stop}"
exit 1
esac
exit 0
---------------------------------------------
Then you have to create a symbolic link to the init script like so:
ln -s /etc/rc.d/init.d/rc3.d/ ../init.d/tcpserver S55tcpserver
That'll do it. Just as a note. I am just finishing a beta setup guide for
Linux users and administrators that wish to run qmail. If anyone is interested
I'd be glad to announce when it's finished.
Brent
On Wed, 17 May 2000, James wrote:
> I am using Mandrake 7.02 and I am trying to get vpopmail
> (http://www.inter7.com/vpopmail) to work using roaming users. One of the
> suggestions in the FAQ (http://www.inter7.com/vpopmail/FAQ) suggests this:
> _______________________________________________________________________
> Your startup script for the qmail smtp server must use the
> tcpserver -x file command similar to this startup line.
>
> env - PATH="/var/qmail/bin:/usr/local/bin" \
> tcpserver -H -R -x /etc/tcp.smtp.cdb -c20 -u503 -g503 0 smtp \
> /var/qmail/bin/qmail-smtpd 2>&1 > /dev/null &
> _______________________________________________________________________
>
> Ok, fine and dandy.. but I don't know where my startup line that contains
> the script that starts the smtp server is. Does anyone know where this
> would go on Mandrake 7.02?
>
> Thanks.
>
> James
--
http://www.matzelle.net