LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-03-2005, 07:04 AM   #1
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Rep: Reputation: 30
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?.....
 
Old 09-03-2005, 07:20 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 10-26-2006, 02:00 PM   #3
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206

Original Poster
Blog Entries: 4

Rep: Reputation: 30
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?
 
Old 10-26-2006, 04:21 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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).
 
Old 10-29-2006, 02:49 AM   #5
smaudlin
Member
 
Registered: Dec 2004
Location: Benicia, CA
Distribution: Fedora 6,5,4 Mandrake 10.1
Posts: 46

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing parameters to bash script Kamikazee Programming 4 10-01-2005 07:41 AM
Passing arguments to a shell script subu_s Programming 3 09-02-2005 06:13 AM
Passing variables from AWK script to my shell script BigLarry Programming 1 06-12-2004 05:32 AM
Passing Parameters to Bash Script mooreted Linux - Software 3 04-05-2004 10:08 PM
passing quotes in shell script Tenor Trombone Programming 1 04-18-2001 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration