Solved

Service Startup

Posted on 2014-03-11
6
179 Views
Last Modified: 2014-03-28
How can I make sure the service would not start unless a certain program is running?

Thanks,
0
Comment
Question by:exhuser
6 Comments
 
LVL 50

Expert Comment

by:jcimarron
ID: 39922113
exhuser--
I think that would depend on the service.  
Is the Service normally in the Stopped status just after boot?
What problem is caused when the service starts without the certain program?
0
 

Author Comment

by:exhuser
ID: 39922121
No the service starts regardless and I need to make a dependency. The problem is the dependent program is not running as a service...
0
 
LVL 28

Assisted Solution

by:serialband
serialband earned 250 total points
ID: 39922271
You could run the dependent executable as a service.

sc create newservice binpath= "<path_to_the_executable>"

From http://support.microsoft.com/kb/251192
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 50

Assisted Solution

by:jcimarron
jcimarron earned 125 total points
ID: 39922278
exhuser--
The reference from serialband may not be applicable to Win 7, although I have not tried it.
This reference from Oracle seems applicable to apps other than Oracle's.
http://blogs.adobe.com/acdc/2010/07/setting_windows_service_depend.html
0
 
LVL 54

Assisted Solution

by:McKnife
McKnife earned 125 total points
ID: 39924328
It's applicable.
And with
sc config newservice depend
you could afterwards define dependencies and that's all.
0
 
LVL 28

Accepted Solution

by:
serialband earned 250 total points
ID: 39925014
Yes, Windows 7 and even Windows 8 uses sc.  It's not exclusive to the servers.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question