How do I make Ubuntu Servers run services at boot time, in a specific order?
I have read a bit about
inittab, and I'm not sure what's the right approach for doing it.
Look into the command
Aside from upstart (which I don't know much about), order is determined by a number in the rcX.d directory (where X is the run level).
Usually, in Ubuntu, normal use is runlevel 2. You put your script in
If your script is
Stopping it will be the same but with a K and in runlevel 0 and 6.
sysv-rc-conf can help you visualize which scripts run on which runlevel.
You mention in a specific order, but if you mean you have multiple processes, and you need them to run in a specified order, but after all the other boot-time processes have started, you can take the easy way out and use /etc/rc.local.
Simply put all your commands in that file in the order you specify, it will be executed by /bin/sh after all other boot processes have started. Make sure that your process detaches, or append an & to the end of each line or your boot will hang!
The above solutions are more robust, this way is more quick-n-dirty.