Thursday, April 17, 2008

Execute any custom command on bootup (SuSE or Red Hat)

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 to execute these commands before any of these scripts, but the commands in the new file:

/etc/init.d/before.local

If you want them to execute afterwards, put it in

/etc/init.d/after.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: chmod +x /etc/init.d/after.local

The other option is to edit the /etc/rc.d/rc.local and do that same there.

Thursday, April 3, 2008