SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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'
lol. "I have a question, but please don't respond with the answer."
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'.
Please don't reply if your answer is: It can be executed as './rc.local'
Ummm... don't know what to think of such a post... however, did you ever try just running the commands you added to your rc.local file so as to prevent the already started programs starting twice?
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
i.e. just do a syntax check, then add this line to rc.local (just for the syntax test!) as the first uncommented line:
Code:
set -n
Now, running
Code:
/etc/rc.d/rc.local
will not execute any command in rc.local but rather do a syntax check for you. If all remains silent, then your rc.local has correct syntax.
Make sure to delete the line "set -n" afterwards or your computer will not recover fully after reboot...!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.