LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2006, 01:08 PM   #1
rpingar
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
how to escape a service at boot?


I have installed a service that it is going to lockup at boot time.
I was so stupid to put it before sshd so I can login from outside the machine.

So now I need to escape the loading of this service at boot time. How to do that?

Now I am running at runtime 5, how to change the runtime level at boot time?

My distribution is redhat el4.

Thanks in advance.
Rosario
 
Old 02-26-2006, 01:12 PM   #2
ckoniecny
Member
 
Registered: Oct 2005
Posts: 162

Rep: Reputation: 30
Just changed turn the execute bit off of the script that starts when the computer boots.

chmod -x /etc/rc.d/rc.StartScript

That will disable the script from executing when the computer boots.
 
Old 02-26-2006, 01:17 PM   #3
rpingar
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Original Poster
Rep: Reputation: 0
unfortunately I can't access the console, because the boot process stops when it try to run that script.

I don't know how to change the runtime level at boot to avoid running that script.
 
Old 02-26-2006, 01:18 PM   #4
ckoniecny
Member
 
Registered: Oct 2005
Posts: 162

Rep: Reputation: 30
What distribution are you running and what boot loader are you using?
 
Old 02-26-2006, 01:20 PM   #5
rpingar
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Original Poster
Rep: Reputation: 0
redhat el4, grub

thanks
 
Old 02-26-2006, 01:22 PM   #6
ckoniecny
Member
 
Registered: Oct 2005
Posts: 162

Rep: Reputation: 30
What you'll want to do is boot into single user mode. This will get you to the local filesystem and you will be able to make the changed to the script so it doesn't execute. Here is a URL to RedHats site that explains in detail what you will have to do to accomplish this.

http://www.redhat.com/docs/manuals/l...ng-single.html

Regards.
 
Old 02-26-2006, 01:23 PM   #7
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
you could use a live cd to modify the contents of your drive. e.g change file permissions. edit rc scripts etc....
 
Old 02-27-2006, 09:29 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,148
Blog Entries: 4

Rep: Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716
Kernels have an "interactive startup" capability that will ask you, one item at a time, if you want to start a particular item at boot-time. It's usually a command line parameter given at boot-time, and it seems to vary. Try "interactive."
 
Old 03-01-2006, 10:13 AM   #9
rmp
LQ Newbie
 
Registered: Feb 2004
Location: Maryland, US
Distribution: RedHat (all flavors), CentOS
Posts: 11

Rep: Reputation: 0
you could also boot off the first RedHat CD, use the resuce mode (type 'linux rescue' at the prompt), agree to mount the linux filesystems when it asks, then edit - be sure to note where / is mounted!
 
  


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
How to get service to start at boot zaichik Linux - Newbie 12 08-27-2008 09:15 PM
how to escape a service at boot? rpingar Red Hat 1 02-26-2006 02:02 PM
Network service start at boot? King of Japan Linux - Networking 2 09-01-2005 10:23 AM
Starting a Service at Boot as a Different user Butterbroetchen Linux - Security 2 05-16-2005 07:05 PM
how to start a service at boot senthilkumar Slackware 2 07-19-2004 07:33 AM


All times are GMT -5. The time now is 10:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration