![]() |
|
|
|
|
|||||||
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Avoiding rc.local file during reboot | eamani_sun | Shell Programming and Scripting | 2 | 05-13-2008 04:28 PM |
| Avoiding duplicates with some special case | pssandeep | SCO | 0 | 03-23-2008 11:43 PM |
| Business process management: Avoiding the pitfalls | iBot | Complex Event Processing RSS News | 0 | 02-13-2008 04:30 AM |
| how to find whether a file is local or remote file? | jackfds | UNIX for Dummies Questions & Answers | 3 | 07-10-2007 05:36 AM |
| different between soft reboot and hard reboot | seelan3 | SUN Solaris | 3 | 09-20-2006 11:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Avoiding rc.local file during reboot
Hi,
I am tryin to install custom software during the linux reboot. So,I have changed rc.local file, but unfortunately I have added a code that is going on a infinite loop. And now I am in a pick. Is there anyway that I can avoid rc.local file while reboot. Can anyone help me with this? Thanks, Sunny |
| Forum Sponsor | ||
|
|
|
|||
|
Depends which distro you're on. If you're on something which uses runlevels, you can bring the system to a runlevel where rc.local is not executed (assuming it's not set to run in all available runlevels). See the telinit and inittab manual pages for an explanation. On the system where I write this (Ubuntu) runlevels are not really used, but it looks like simply booting into single user would avoid running rc.local; this also appears to hold on a Debian system I'm looking at (which in turn seems to have copied this stuff from Mandrake, basically) and there's even a comment in /etc/rc.local which says it's executed in multiuser run levels ("only", you are tempted to add).
|
|||
| Google UNIX.COM |