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 |
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. |
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. |
What distribution are you running and what boot loader are you using?
|
redhat el4, grub
thanks |
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. |
you could use a live cd to modify the contents of your drive. e.g change file permissions. edit rc scripts etc....
|
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."
|
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. |