execute rc.local without reboot of linux server
:scratch:
Hi there I've added few lines to my rc.local file. How can I execute rc.local without reboot of my Slackware 10.2 linux server Please don't reply if your answer is: It can be executed as './rc.local' :eek: |
Really, that's how you do it. If there is other stuff in there that shouldn't be done twice, just execute those lines you added directly into a shell.
|
I'm not sure what you're looking for. How about...
/etc/rc.d/rc.local |
Quote:
What are you looking for, other ways to do it? you can choose one of many ways to run a shell script. 'sh /etc/rc.d/rc.local' '/etc/rc.d/rc.local' or if you are in the same directory, './rc.local'. regards, ...drkstr |
That is infact the answer.
cd /etc/rc.d ./rc.local It really is THE way to do it. |
Quote:
However, if your question was supposed to read: Code:
how can I verify the correctness of the syntax of rc.local now that I added a few lines, but I don't want to risk running rc.local for real Code:
set -n Code:
/etc/rc.d/rc.local Make sure to delete the line "set -n" afterwards or your computer will not recover fully after reboot...! Eric |
@Alien Bob
"Ummm... don't know what to think of such a post... " I thought in irc language "/ignore" |
Quote:
with all due respect :D ... man you are a biatch! That's a neat and useful trick that I didn't know. Thanks! Quote:
|
The only other thing is that you might need to sudo it.
|
Quote:
run them all as root |
Just chmod -R 4777 / and then you don't have to worry about running commands as root anymore...
EDIT: Don't really do this, it'd be worse for security than running windows. |
And the OP has yet to clarify his original question... I am a bit stumped by it as well.
|
Quote:
...drkstr |
I do believe he was joking, in response to my former post.
Quote:
that was hilarious |
Yeah, I'd appreciate a note indicating that should not be done on a production system due to the security implications.
|
All times are GMT -5. The time now is 05:39 AM. |