Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2002 22:04:06 -0600
From:      "Mike Meyer" <mwm-dated-1012968247.9ca599@mired.org>
To:        David Ouyang <ntusnet@yahoo.com>
Cc:        questions@freebsd.org
Subject:   Re: Newbie+FreeBSD+Qmail
Message-ID:  <15450.5046.983290.446502@guru.mired.org>
In-Reply-To: <65942600@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
David Ouyang <ntusnet@yahoo.com> types:
> Hi everybody:
> I have newbie question about setting qmail server 
> on Freebsd4.3 stable.
> 
> Like Liunx I can do the following to make qmail
> start at boot time
> 
>     ln -s /var/qmail/bin/qmailctl INITDIR/qmail
>     ln -s ../init.d/qmail RCDIR/rc0.d/K30qmail
>     ln -s ../init.d/qmail RCDIR/rc1.d/K30qmail
>     ln -s ../init.d/qmail RCDIR/rc2.d/S80qmail
>     ln -s ../init.d/qmail RCDIR/rc3.d/S80qmail
>     ln -s ../init.d/qmail RCDIR/rc4.d/S80qmail
>     ln -s ../init.d/qmail RCDIR/rc5.d/S80qmail
>     ln -s ../init.d/qmail RCDIR/rc6.d/K30qmail
> 
> How do I do this on FreeBSD?

Assuming that qmailctl is an executable shell script that accepts a
"start" and "stop" argument:

# mkdir -p /usr/local/etc/rc.d
# ln -s /var/qmail/bin/qmailctl /usr/local/etc/rc.d/qmail.sh

BSD doesn't have the multitude of "run states" that most Linux distros
got from SysV. [Political comment removed.]

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15450.5046.983290.446502>