how to change rc.local
Dear All,
I have changed rc.local file and now my CentOs 6.5 x64 hang.. and unable to start.. how to recover this? please help thanks pau |
what you changed in rc.local?
by default its look like, Quote:
|
I call openvpn --config client.ovpn
it stuck there :( .. and I want to remove that line now .. but no luck :( ..please help thank you |
What do you mean you cant login to the server?
login to the server and remove the line form rc.local manually run and make sure the openvpn first |
yes, I am unable to login to the server and remove that line
|
You could boot from the install media and pick rescue mode, this will let you mount the existing file-system and allow you to edit the file.
|
noted and thanks to all :)
|
Did you try to boot into single user mode and change the file? You should be able to boot into single user mode by passing relevant parameters to the kernel from grub.
|
From memory (so I may be wrong!), "single user" will still run init files including rc.local, just at the appropriate run level, "emergency" will start up but not run init.
|
Single user mode only runs processes designated for single user operation - rc.local is not supposed to be one of those, neither are any of the startup scripts. Basically it should just run "login root" or "bash" - only the root filesystem would be mounted.
|
All times are GMT -5. The time now is 12:39 AM. |