I just moved to debian squeeze and need to change the startup sequence of some scripts. I used to do this with update-rc.d service defaulta xx xx
but now with the LSB way of doing things the update-rc.d
method does not change the order.
I need to start the packages in this order:
- openvpn
- ndo2db
- nagios
- apache2
Any ideas?
Just use
Required-Start
keyword. For e.g, init script forndo2db
should have the following:Take a look at this for more details.
Once you edit the Required-Start lines (and Required-Stop lines) in the appropriate files in your init.d directory, perform the following commands for each of the services you'd like reordered:
Once you do this, the init scripts will be reordered in your rc#.d directories.