Example, when I turn on my server, I want to start mysql first then the NTP service.
1 Answer
You are probably looking for Upstart. Upstart stanza start on
can establish the order services are started.
In the example you proposed, NTP doesn't have an upstart script so you should create it and define the start stanza:
start on started mysql
Of course, mysql should have a upstart job too. There are pretty cool things, for example if you need to start a job when a internet connection get up:
start on net-device-up IFACE!=lo
This start the job when any network device, besides lo, is up.
References: