Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-11-2006, 01:00 PM   #1
Registered: Jan 2006
Posts: 70

Rep: Reputation: 15
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:
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
Old 05-12-2006, 10:01 PM   #2
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
If your service is a custom service, why don't you start dependent services in the custom service(all in one).
Old 05-13-2006, 03:44 PM   #3
Registered: Jan 2006
Posts: 70

Original Poster
Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logs filling up with "smbd/service.c:make_connection" - "couldn't find service" DumbTerminal Linux - Networking 14 07-16-2007 07:33 AM
Priority: script to run on boot vs. "service iptables save" iheardrain Linux - General 5 09-30-2004 10:53 PM
Problem starting, needed service "Netmount" not started The_fuzzy_cow Linux - Hardware 1 07-26-2004 07:08 AM
" Spymac Launches The Internet's First Free 1 Gigabyte Email Service" furfurdemon666 General 9 04-09-2004 09:28 PM
"mawk" dependency missing in CD install lilsirecho Arch 8 10-26-2003 12:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration