From owner-freebsd-questions Thu Jan 31 20: 4:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 9F42537B400 for ; Thu, 31 Jan 2002 20:04:09 -0800 (PST) Received: (qmail 11068 invoked by uid 100); 1 Feb 2002 04:04:07 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15450.5046.983290.446502@guru.mired.org> Date: Thu, 31 Jan 2002 22:04:06 -0600 To: David Ouyang Cc: questions@freebsd.org Subject: Re: Newbie+FreeBSD+Qmail In-Reply-To: <65942600@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.44 (Python 2.2; freebsd-4.5-RC-i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Ouyang 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.] 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