Date: Mon, 29 Jan 2001 12:11:02 -0600 From: Tony Wells <awells@journalstar.com> To: "Christopher W. Aiken" <cwaiken@telerama.com> Cc: "Raymundo M. Vega" <RaymundoVega@home.com>, younhee <xenith2@hanmail.net>, questions@FreeBSD.ORG Subject: Re: Can I modify the order of starting deamon on the FreeBSD Message-ID: <3A75B236.F87B15B4@journalstar.com> References: <Pine.BSF.4.21.0101271253130.5226-100000@bigdaddy.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A75B236.F87B15B4>