I want to run one sysvinit script before another and figured out how to do that.
To make sure, this actually happens in the the order I like, I would like to see a list, in which order that happens.
I found sudo insserv --showall
already, but can't make head or tail of it, since it lists init scripts multiple times.
How to find out in which order /etc/init.d scripts are load on Debian?
Best Answer
There's some files in /etc/init.d/ directory:
Whenever you run
update-rc.d
the files will change..depend.boot
file is forS
level,.depend.start
is for2 3 4 5
levels and.depend.stop
for0 1 6
.In my case, I have the following order in
.depend.start
:You can also see why the order presents in the way you see above. Each next line looks like this:
which means that
cgrulesengd
needsrsyslog
cgconfig
to be started prior.