Tuesday, May 27, 2008

Execute any custom command on bootup (Ubuntu, Debian)

This command is for anything that you would like to execute after the system has been started and all of the scripts in /etc/init.d/ have been run. If you want them to execute afterwards, put it in

/etc/rc.local

This is rather useful for network mounts, changes to hardware configuration, or custom programs that need to be started at boot. Make sure to make the file executable through the command: $sudo chmod +x /etc/rc.local

No comments: