Linux startup: execute scripts at startup

Published by

Posted on July 19, 2008

first check your /etc/inittab file for the default run level type

Place your script in /etc/init.d/ and proceed to /etc/rc.d/rcX

*x being the run level number

create a syslink to your scripts in this folder. make sure you scripts has executable permissions .

Added note for the naming of the syslink

should start with ‘S’ orĀ  ‘K’. Each will be followed by a two digit number where the number describes the order in which this script will be loaded.

The link with ‘S’ will start the script as where the script with ‘K’ will kill it.