| PLEX86 | ||
|
Linux shutdown sequence 78
If you are running Debian, Ubuntu, Knoppix, or Gentoo, I don't know the details. Weird problem booting I recently added a new hdd to my debian etch box that boots from GRUB. I decided to install win98 on the new hdd. After successfully getting... If you are running a distribution like RedHat, Fedora, Centos SuSE, or Mandrivia: What these distros have in common is a software package called sysvinit (System V init). Commands like shutdow and reboot sends signals to the program "init", telling it to change to "runlevel 0" (for shutdown) or "runlevel 6" (for reboot). "Telinit 0", as you mention, does the same. The program "init" reads the fileetc-inittab and sees what programs needs to run or stop to effect the runlevel change. In practice, you will find it 1) stops the graphical session, and 2) runs the command "-etc-rc.d-rc 0" or "-etc-rc.d-rc 6". You can read the script to see the details, but you will find it looks in the directoryetc-rc.d-rc0.d, and runs all scripts and programs there, first those whose name begins in "K", with argument "stop", then those whose name begins with "S", with argument "start". Weird problem booting 81 In all honestly, I'm too lazy to take the drives out AND reconfigure GRUB. It's easier to hit del, and change my BIOS settings when it comes to that. I... Create a file, sayetc-rc.d-rc.local.stop, and create links to it in the two directoriesetc-rc.d-rc06.d. Make sure the script is executable. Depending on what you actually want to configure, you may want to modify some of the existing scripts (which reside inetc-rc.d-init.d), but that is generally a bad idea, because the scripts will be overwritten when you upgrade the software packages they belong to. What remain user configurable are the links inetc-rc.d-rc0-6.d . You will typically use a program likesbin-chkconfig to maintain the links. -Enrique
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||