I want to stop (and start again later) several services manually. How can I figure out the correct sequence that respects the dependencies?
In ancient times I could parse the contents of e. g. /etc/rc2.d and follow the given sequence. How would that work with upstart?
What I need is a script:
Input: list of services
Output: this list sorted such that these services can be safely started int that order
I want to backup my system; prior to the backup I want to stop services that might lead to an inconsistent backup (like the mail system), or that might have some data in memory and not on the file system (like databases).