On Thu, 2003-08-21 at 20:42, Cameron Simpson wrote: > On 17:00 20 Aug 2003, Marcos de Souza Trazzini <[EMAIL PROTECTED]> wrote: > | On Wed, 2003-08-20 at 05:42, Simon Tischer wrote: > | > one little question: > | > where can i edit to bootup sequence on a rh 9, i have made an new script in > | > /etc/rc.d/init.d/ and i whan that it will be execute befor checking for new > | > hardware. > | > | Well, in order to use chkconfig utility to add the script to bootup, the > | script must have some entries in the header (look at the others scripts > | in /etc/init.d directory for a line that contains "chkconfig" at > | headers). > | > | There's another way to do this. You must create a symbolic link from the > | /etc/init.d/scriptname to /etc/rcX.d/SNNscriptname, where the "X" is the > | runlevel to run the script at bootup and the NN is the numerical orcer > | to start the scripts (the lowest numbers are started first). > > Or you can do what I've done to my laptop, and am beginning to do to > some other machines: realise that run levels are a crude system that it > readily abstracted into something a lot more general. I wrote myself a > script rc.mobile: > > http://www.cskk.ezoshosting.com/cs/css/index.html#rc.mobile > > for mobile laptops, but it works for nonmobile things too. > Afterwards you don't need to fiddle with chkconfig or those > SXXservice/KXXservice symlinks. > > WARNING: be sure you understand how the current system works _first_. > So do it the chkconfig/symlink way _first_ if you've never dealt with > this before. > > Consider rc.mobile an interesting exercise for later. > > BTW, I tend to turn of kudzu (hardware detection) completely if my > machine config is stable. It takes a long time and is a complete waste > if your machine doesn't change. > > Cheers, > -- > Cameron Simpson <[EMAIL PROTECTED]> DoD#743 > http://www.cskk.ezoshosting.com/cs/ > > I recently saw a crash where a yokel in a lwb Landrover had pulled > out of a junction on a fast road in front of a speeding Volvo (one of teh big > estate cars). The volvo had t-boned it amidshipps at about 60mph The landrover > was badly dented. Need a couple of hours with a hammer to straighten the > panels. The Volvo was urecognisable from the turret forewards. > > Brakes? Who cares? > - Andy Woodward, <[EMAIL PROTECTED]>
Well... interesting your script.... but you can try "sistem I don't understand the intention of your phrase: "WARNING: be sure you understand how the current system works _first_. So do it the chkconfig/symlink way _first_ if you've never dealt with this before." It's to me???? what of my affirmation are wrong??? Take a example: - First, create a script in /etc/init.d. (scriptname in this example). - Edit the script, then add to the first lines of the script these lines (With the comment # !!!): # chkconfig: 2345 11 90 # Description: A shot description for the script - Remember: "Don't symlink anything by hand, don't need !!! And now, simple run the command "chkconfig --add scriptname" to auto-create the symlinks S11scriptname/K90scriptname under /etc/rc.d tree, according the runlevels in the chkconfig line. Check the results with the command " find /etc/rc.d/ -name *scriptname*" You see.... is very simple to menage startup scripts. In chkconfig line at the script, the first numeric value points to the runlevels what the script runs at bootup, the second is the priority value at bootup, and the third are the priority level when shutdown the actual runlevel. Say me in what I'm wrong.... -- Marcos de Souza Trazzini <[EMAIL PROTECTED]> Servmicro Informática LTDA -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list