LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to escape a service at boot? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-escape-a-service-at-boot-419785/)

rpingar 02-26-2006 01:08 PM

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

ckoniecny 02-26-2006 01:12 PM

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.

rpingar 02-26-2006 01:17 PM

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.

ckoniecny 02-26-2006 01:18 PM

What distribution are you running and what boot loader are you using?

rpingar 02-26-2006 01:20 PM

redhat el4, grub

thanks

ckoniecny 02-26-2006 01:22 PM

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.

satinet 02-26-2006 01:23 PM

you could use a live cd to modify the contents of your drive. e.g change file permissions. edit rc scripts etc....

sundialsvcs 02-27-2006 09:29 AM

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

rmp 03-01-2006 10:13 AM

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!


All times are GMT -5. The time now is 01:35 AM.