LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Service "Dependency" (https://www.linuxquestions.org/questions/linux-software-2/service-dependency-443839/)

The00Dustin 05-11-2006 12:00 PM

Service "Dependency"
 
I have a service that I want to make consistently stop before another service stops and start after said other service starts. I would like to make this happen on manual service restarts without running a command like:
Code:

service dependent stop ; service master restart ; service dependent start
Is there some way I can configure a dependency, or would I just have to add the commands for the dependent service to the master service's init script and remove the dependent service from the rc.runlevel folders? TIA

mrcheeks 05-12-2006 09:01 PM

If your service is a custom service, why don't you start dependent services in the custom service(all in one).

The00Dustin 05-13-2006 02:44 PM

One of the services is custom, in the sense that it isn't part of the OS, but I didn't make it, and it depends on a bult-in service. I have bee n corsidering editing the built-in service, but I wanted to find out if there was an easier / more proper way first. Thanks.


All times are GMT -5. The time now is 02:19 AM.