Ok.. 

1) The best place to add "user" scripts is in the /usr/local/etc/rc.d/
directory.  You make a little /usr/local/etc/rc.d/qmail.sh file to run
that command.  (this will save it from upgrade to upgrade).  The files
in /usr/local/etc/rc.d/ are run after /etc/rc.* are done but before you
log in.

B) Your path is not initialized at that point.  You should put the
explicit path to tcpserver in your startup script.  This way it will not
require anything extra in the path to start it.

> -----Original Message-----
> From: Jeff Lush [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, April 19, 1999 11:25 AM
> To:   [EMAIL PROTECTED]
> Subject:      Qmail and tcpserver bootup script
> 
> Hello all,
> 
> I am a bit of a newbie to Unix and installed qmail for the first time
> this
> weekend on FreeBSD 3.1. Installation and configuration was really very
> straight forward. In no time I had setup selective relaying for my LAN
> and
> pop3 with checkpassword (kudos to everyone with documentation on these
> topics, without you people like me would be lost!). My only problem
> is:
> 
> As the FAQs and docs require, I added two lines to my startup script:
> 
> 1) "tcpserver -R -x/usr/local/etc/tcp.smtp.cdb -u82 -g81 0 smtp
> /var/qmail/bin/qmail-smtpd &"
> 
> 2) "tcpserver 0 110 /var/qmail/bin qmail-popup MYHOST \
> /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &"
> 
> I added these into the rc.conf file under /etc.
> 
> When the machine reboots, I get an error near the end of the script
> saying
> "tcpserver not found"; however, when I manually key in the commands at
> the
> prompt, they work fine.
> 
> I suspect I have placed the tcpserver commands into the wrong boot
> script,
> but I am not sure which others to use.
> 
> Any assistance on this would be greatly appreciated.
> 
> Thanks,
> 
> Jeff Lush
> mailto:[EMAIL PROTECTED]

Reply via email to