by-passing script in rc.local
I'd like to know if there is any way to by-pass the script running from /etc/rc.d/rc.local?
The other day my script started behaving oddly during boot and I was unable to do anything to stop that script from continuing. Fortunately, things fell into place on it's own, but I don't fancy that happening all the time. So?..... |
just remove the line... or am i missing something?? If you mean you want to be able to interrupt it on demand then no, there's no way. rc.local is norammly just run as a serevice script like any other. maybe you'd want to let it fork into the background instead...
|
What I meant was, when someone screws up the rc.local file and it goes into some infinite loop during start up. How would one solve such a case?
|
Boot into single user mode; no services, including rc.local are run. You can then edit the file and correct the problem. When you 'exit' from single user mode, startup continues at your default runlevel (usually 5 on Fedora).
|
by-passing script
you can also use the recovery cd and it will mount your directory then you can fix the file and reboot. It's actually easy.
Put in the CD Go into recovery and let it mount directory when it's ready do this exactly: type vi /mnt/sysimage/etc/rc.local press i arrow to line and delete or add # to beginning of line to ignore that line press esc then shift ZZ then reboot |
All times are GMT -5. The time now is 10:51 AM. |