rc.local runs after all the runlevel start scripts - so it's not really a good place to configure things those scripts are going to need. I've done some poking around in rc.s... [by Moray]
on 06/29/2012 – Made popular on 06/29/2012
I learned here that for each runlevel exist a directory with start and kill scripts. The start scripts are activated on entering , the kill scripts on leaving the runlevel. Start scripts and kill scripts for each level are contained within /etc/rcX.d (X stands for the runlevel).
I read, that each runlevel has its own set of services or daemons, which can be looked up in /etc/rcX.d (X for the respect runlevel), there are scripts which names start with S and start services of the runlevel, there are also scripts that starts with a K, they are killing-scripts to stop a service from running.