Startup Scripts
Scripts executed by init:
/etc/init.d/rcS (at startup)
/etc/init.d/rc (when changing run levels)
These two execute scripts in directories specific for different run levels located in the following directories:
/etc/rcS.d /etc/rc0.d /etc/rc1.d /etc/rc2.d /etc/rc3.d /etc/rc4.d /etc/rc5.d /etc/rc6.d
K11cron K20iptables K79quotarpc K89klogd S31umountnfs.sh S90reboot
K20dhcp K20makedev K85quota K90sysklogd S35networking
K20exim4 K20ssh K86ppp S20sendsigs S36ifupdown
K20inetd K25hwclock.sh K89atd S30urandom S40umountfs
S - means "start"
K - means "kill" or "stop"
The number - means kill/start sequence number.
In this example, when system enters run level 6, the scripts are
executed in the following order:
K11cron, K20dhcp, ...
K90sysklogd
followed by
S20sendsigs, S30urandom, ... S90reboot
Manual start/stop: