Thu Jan 09, 2014 7:46 pm
Have a look in /etc/rc2.d
In there there's a bunch of symlinks that are run in number order.
The S##functionname scripts run at start up
The K##functionname scripts run at shutdown (or when you switch from run level 2 to run level 6)
Each script (except mathematica where it's missing) has dependency info in the header. That's used by update-rc.d to define what order scripts run in.
You can't do anything before the local filesystems are mounted with read/write access.
It's unusual to start a network service (like sshd) before the interface(s) are alive and connected.
So its relatively easy to change the order.
If you have S05foo and S05bar they have the same position in the queue by number so it's alphabetical, bar runs before foo (assuming no other dependencies).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Criticising any questions is banned on this forum.
Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.