From owner-freebsd-questions Tue Sep 19 18:34:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by hub.freebsd.org (Postfix) with ESMTP id E144537B424 for ; Tue, 19 Sep 2000 18:34:04 -0700 (PDT) Received: from morgaine.udel.edu (morgaine.wondermutt.net [192.168.1.2]) by wondermutt.net (8.9.3/8.9.3) with ESMTP id VAA18359; Tue, 19 Sep 2000 21:36:21 -0400 (EDT) (envelope-from papalia@udel.edu) Message-Id: <4.3.2.7.2.20000919213136.00ac17b0@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 19 Sep 2000 21:33:28 -0400 To: mgruver@reveregroup.com, freebsd-questions@FreeBSD.ORG From: John Subject: Re: Where to start daemons,... /etc/rc.conf? In-Reply-To: <86256960.00064C29.00@main.reveregroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >You will have to forgive my ignorance... However I have to ask... I have >several >Daeomons I would like to execute on startup of FreeBSD 4.4. However, when I >appended them at the end of the /etc/rc.conf file they didn't start when I >wanted them to... namely last. > >The daemons I want to start are the named daemon with a custom conf file, and >the tinyproxy port. I can start the just fine from the command line after >login >and I know the parameters I want to use, I just don't know where to put >them to >control their execution. You can (should?) start named in the /etc/rc.conf file. Within the "Network daemon (miscellaneous)" section, you can put in: named_enable="YES" # Run named, the DNS server (or NO). named_program="/usr/sbin/named" # named program, in case we want bind8 instead. named_flags="-b /etc/namedb/named.conf" # Flags to named (if enabled). Where you put the name & path of your named.conf file in place of mine above. As for your other items you want to stop, you can write a small start-up script and place it within /usr/local/etc/rc.d which is where your start-up scripts go. Odds are if you look in that directory you'll find some other files there that might give you a hint on how to set up the script. Hope that helps, John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message