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]> -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list