To make scripts running at boot
What is the difference between using:
chmod +x /etc/rc.d/rc.local Or: /etc/rc.d/rc.local enable ? |
Quote:
the second just executes rc.local: it doesn't know about an "enable" parameter because by default it's empty, it doesn't contain something (commands, function, etc.) to execute when passed that string. if you want to execute an executable /etc/rc.d/rc.whatever at boot you have to add an if..then like this inside /etc/rc.d/rc.local Code:
# Starting the whatever daemon ad if you want the "whatever" daemon to stop at shutdown, you have to add something similar to /etc/rc.d/rc.local_shutdown Code:
# Stopping the whatever daemon |
I am still confused, a tutorial "said" to "chmod +x" to make it executable and to run at boot. Then, I've put "unicode_start" on it. I've run "/etc/rc.d/rc.local enable" and it looks like it worked.
|
Quote:
the only /etc/rc.d/rc.* scripts that are executed at boot just if you make them executable are the ones which are called from the ones that bring up the system (with an if..then condition like the one above), see /etc/rc.d/rc.M and /etc/rc.d/rc.inet2 for examples. Quote:
|
Quote:
|
Oh, I see. Now I've got it. "unicode_start" was just a command to set UTF properly, according to the tutorial.
Thanks guys. |
All times are GMT -5. The time now is 11:51 AM. |