I have a hierarchy of programs running which have a very specific start and stop order. I think I got the run levels set appropriately, but I'm having issues with some of them not working in the order intended. Is there a way to step through the start-up and shutdown so I can see what's going on as it happens?
The way debian/ubuntu orders the
rc(number).d bootup is:
0 to 6 for the runlevel, 0 for halt, 6 for reboot, etc.
K at the beginning of the link for Kill.
S at the beginning of the link for Start.
The number after the K/S is the order in which they start inside each run level from low to high.
/etc/rc3.d/S20apache2 -> ../init.d/apache2
/etc/rc3.d/S75sudo -> ../init.d/sudo
The comand to update the runlevels is
example from debuntu:
starting apache with priority 20 on runlevels 2, 3, 4 and 5 and Kill with priority 80 on runlevels 0, 1 and 6
update-rc.d apache2 start 20 2 3 4 5 . stop 80 0 1 6