Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-03-2005, 07:04 AM
|
#1
|
Member
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Rep:
|
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?.....
|
|
|
09-03-2005, 07:20 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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...
|
|
|
10-26-2006, 02:00 PM
|
#3
|
Member
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Original Poster
Rep:
|
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?
|
|
|
10-26-2006, 04:21 PM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
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).
|
|
|
10-29-2006, 02:49 AM
|
#5
|
Member
Registered: Dec 2004
Location: Benicia, CA
Distribution: Fedora 6,5,4 Mandrake 10.1
Posts: 46
Rep:
|
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 12:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|