From owner-freebsd-questions@FreeBSD.ORG Sat Mar 18 21:16:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00F1416A422 for ; Sat, 18 Mar 2006 21:16:12 +0000 (UTC) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E45943D68 for ; Sat, 18 Mar 2006 21:16:09 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2) with ESMTP id k2ILG7iU015356; Sat, 18 Mar 2006 16:16:07 -0500 (EST) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2/Submit) id k2ILG76o015355; Sat, 18 Mar 2006 16:16:07 -0500 (EST) From: Jerry McAllister Message-Id: <200603182116.k2ILG76o015355@clunix.cl.msu.edu> To: corwin@aeternal.net Date: Sat, 18 Mar 2006 16:16:06 -0500 (EST) In-Reply-To: <441C745C.4010407@aeternal.net> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Best Way to Start an App at Boot Time? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Mar 2006 21:16:12 -0000 > > Hello Robert, > > robert wrote: > > rc.local is not normally used with later versions of Freebsd - see man > > rc.local. > > > > The script should tell you how to use it, but normally it should be > > added to /usr/local/etc/rc.d and called from /etc/rc.conf with something > > like denyhosts="YES". You are mostly right, but a quibble about your terminology. You do not 'call' it from /etc/rc.conf (or /etc/rc/conf.local) by putting in the denyhosts="YES" line. Putting the denyhosts="YES" line in rc.conf sets that as an environment variable which the script in /usr/local/etc/rc.d can examine and decide whether to do its thing or not. There is another process that runs during startup. It obtains a list of the contents of the /usr/local/etc/rc.d directory. It then executes all of the files whose name ends in .sh and has execute permission set on them. Each of them is run in turn and given the single parameter of 'start'. Those files are normally scripts and they are given the environment variables of rc.conf (and rc.conf.local or another if there is an include for it). Obviously, you could put a statement in rc.conf that causes something to run right then, but that is not the expected way to do it. ////jerry > > Nice to know this :), thank you. > > Martin > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >