Script running on startup (Linux)

Soldato
Joined
9 Dec 2004
Posts
5,700
Location
Dorset
Hey all,

Whats the easiest way to run a really simply script on startup in Linux? I've made a little one to bring up some virtual ethernet devices, all the guides on the web seem to conflict with each other :S

Ta :)
 
I have the follow in the rc.local file;

/root/myscript

Is that all I need to do? doesn't seem to run.
I've done a chmod +x on it ....
 
Hi,

Sorry this is using Centos, so RedHat.

Edit - Yep correct shell, on closer inspections it seems like the problem may be to do with udev. Thanks for your tips, I'll have a tinker and see what happens, can't try it until next week anyhow.
 
Back
Top Bottom