How do I make a script run at boot?
How would I make a script on the machine run at boot?
|
With slack you just put the script in /etc/rc.d directory and make it executable.
|
Also you could call it from rc.local:
Code:
echo "/path/to/foo.sh >> /etc/rc.d/rc.local |
you just write the script and place it in /etc/rc.d/rcX.d.
the X denotes the runlevel . also give it exec: permission for root. thats all |
Quote:
-Joey |
Thanks
Just a thank you.
|
Here is a good explanation of the boot process for Slackware.
Slackware Linux 101 |
how about in Suse 9.2 i need to create a simple script that runs at boot so it can configure my wireless.
|
Umm, I wrote a script and placed it in /bin so that I may type "start-teamspeak" and it run the script to start a teamspeak server. However, if I add the line "start-teamspeak" to the file rc.local, it doesn't start the process at boot. What could I be doing wrong? Yes, the command works when not called by rc.local.
|
try
/bin/start-teamspeak in rc.local |
All times are GMT -5. The time now is 04:12 PM. |