On Fri, Jul 06, 2001 at 05:52:28PM +0200, Moritz Schmitt wrote:
> It's me again,
> 
> who has another newbie question. Like some of you suggested I'm now reading
> "Life with qmail" instead "Running qmail". I got to the point in the
> document where the author describes the qmailctl script. But I don't really
> understand what to do with it... I understand the script and I figured out
> that it needs an argument. But the author wants me to put it into
> /var/qmail/bin and to create a link to my init.d directory as far as I
> understood him. At first I'm not sure what my init.d dir on my FreeBSX box
> is. Isn't it /usr/local/etc/rc.d? If I'm right then I don't understand why
> to create a link because the script expects an argument and FreeBSD is just
> executing the link at startup _without_ any arguments AFAIK. What do I
> misunderstand?
> 

If you're running FreeBSD-4.3, or FreeBSD-stable, scripts in
/usr/local/etc/rc.d are executed with a 'start' argument. Cannot recall
exactly when this was implemented, but it was sometine between
4.1-RELEASE and 4.3. IIRC, this should work just fine with the qmailctl
script.* Alternatively, you could avoid the link thing altogether and
simply call '/var/qmail/bin/qmailctl start' from
/usr/local/etc/rc.d/qmail.sh. (Scripts that parse no arguments still
work just fine.)


* see /etc/rc and /etc/rc.shutdown -- rc.shutdown also runs '*.sh stop'
in the local startup directories.

> Please more enlightenment,
> -Moritz
> 

Start from 'man man' and work outwards. ;)

-- 
Greg White

Reply via email to