From owner-freebsd-questions Tue Sep 19 18:44: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cwalk.org (cx521708-b.pv1.ca.home.com [24.177.2.144]) by hub.freebsd.org (Postfix) with ESMTP id C7F2537B423 for ; Tue, 19 Sep 2000 18:44:01 -0700 (PDT) Received: from butthead (butthead.walker [192.168.1.10]) by cwalk.org (8.9.3/8.9.3) with SMTP id SAA38836; Tue, 19 Sep 2000 18:47:37 -0700 (PDT) (envelope-from cwalker@cwalk.org) Message-ID: <002d01c022a4$2793c330$0a01a8c0@walker> From: "Caleb Walker" To: , References: <86256960.00064C29.00@main.reveregroup.com> Subject: Re: Where to start daemons,... /etc/rc.conf? Date: Tue, 19 Sep 2000 18:43:19 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You will probably want to make a file for each of your daemons in your /usr/local/etc/rc.d/ called sshd.sh for your sshd daemon. Put in this file: first line: #!/bin/sh /usr/local/sbin/sshd This is the simplest of shell scripts. Once you have made this file exit and save and run this command on it: chmod +x sshd.sh This gives this file execute permissions Now every time your machine boots this program will run. This is an example for sshd, which if you install sshd from the ports collection it will install this file in your rc.d dir aoutomaticlly with a hole lot more lines of coarse but this idea should get you going anyway. So cusomize this to your liking to which ever daemon you need to run at boot time. ----- Original Message ----- From: To: Sent: Tuesday, September 19, 2000 6:07 PM Subject: Where to start daemons,... /etc/rc.conf? > > > 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. > > mgruver@reveregroup.com > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message