LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   by-passing script in rc.local (https://www.linuxquestions.org/questions/fedora-35/by-passing-script-in-rc-local-359781/)

mufy 09-03-2005 06:04 AM

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?.....

acid_kewpie 09-03-2005 06:20 AM

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...

mufy 10-26-2006 01:00 PM

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?

macemoneta 10-26-2006 03:21 PM

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).

smaudlin 10-29-2006 01:49 AM

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.