From owner-freebsd-questions Mon Jan 29 10:12: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.lee.net (unknown [208.229.121.1]) by hub.freebsd.org (Postfix) with ESMTP id 0165537B698 for ; Mon, 29 Jan 2001 10:11:50 -0800 (PST) Received: from journalstar.com (leepcD-193.sub-d.lee.net [208.205.127.193]) by trinity.lee.net (8.9.3/8.9.3) with ESMTP id MAA25326; Mon, 29 Jan 2001 12:11:33 -0600 Message-ID: <3A75B236.F87B15B4@journalstar.com> Date: Mon, 29 Jan 2001 12:11:02 -0600 From: Tony Wells X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.5-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Christopher W. Aiken" Cc: "Raymundo M. Vega" , younhee , questions@FreeBSD.ORG Subject: Re: Can I modify the order of starting deamon on the FreeBSD References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There's one small "gotcha". The scripts are run in lexicographic order, so if you have two shell scripts 99.runfirst.sh 100.runsecond.sh The 100.runsecond.sh script will be executed first since "1" comes before "9". If you notice in /etc/periodic/daily the numbering scheme allows you to add scripts where you want in the order without having to rename everything, which is a good idea. (Just like the bad old days of BASIC line numbers.) "Christopher W. Aiken" wrote: > > On Sat, 27 Jan 2001, Raymundo M. Vega wrote: > > ->younhee wrote: > ->> > ->> Hello.. > ->> I ask a question again.. > ->> I began to study FreeBSD. > ->> I want to know how OS read the shell script or file in the /usr/local/etc/rc.d/ on the booting because I want to change the order of starting deamon.. > ->> please, help me.. please.. > -> > ->What is executed are files with extension *.sh under > ->/usr/local/etc/rc.d, but, if you need a specific order > ->I think you must change the names to delete the extension > ->.sh and make your own shell script executing the other > ->shell scripts in the order you want or use rc.local for > ->this purpose. Keep in mind that you may need a delay between > ->daemons to make sure one is running before the next is > ->started. > -> > ->buena suerte > -> > ->raymundo > > Take a look in /etc/periodic/daily and you will see that by > adding a number to the front of your script names you can > choose the sequence that you want by numeric order. > > -- > Christopher W. Aiken, Scenery Hill, Pa, USA > chris at cwaiken dot com, www.cwaiken.com > Debian GNU/Linux 2.2_r2 & FreeBSD 4.2 RELEASE > > 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