LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-11-2006, 12:00 PM   #1
The00Dustin
Member
 
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:
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
 
Old 05-12-2006, 09:01 PM   #2
mrcheeks
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, 02:44 PM   #3
The00Dustin
Member
 
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.
 
  


Reply



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 06:33 AM
Priority: script to run on boot vs. "service iptables save" iheardrain Linux - General 5 09-30-2004 09:53 PM
Problem starting, needed service "Netmount" not started The_fuzzy_cow Linux - Hardware 1 07-26-2004 06:08 AM
" Spymac Launches The Internet's First Free 1 Gigabyte Email Service" furfurdemon666 General 9 04-09-2004 08:28 PM
"mawk" dependency missing in CD install lilsirecho Arch 8 10-26-2003 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:22 PM.

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