Program starts before the required service has been started

  • Thread starter Dennis van der Meer
  • Start date
D

Dennis van der Meer

Hi,

I have a piece of software that monitors the system for core
temperature and fan speed, etc. The monitoring is done by a service
and a separate program connects with this service to read the values
it needs and presents them to the user.
When logging on the program starts before the service is able to start
and so it will generate an error. After I click away this error and
start the piece of software again all is fine since the service has
been started by then.
You can make services dependent upon other services so they will wait
until the dependent services have been started. Is there a way to do
this with a non service (read program)? I could probably write a small
program that checks if the service has been started and if not it will
sleep for another 5 seconds before trying. If it is started then it
calls the specific program and will exit. But this is a lot of work
for something that might be solved easier. Anyone??

Thanks,

Dennis van der Meer
 
R

Rick

Dennis van der Meer said:
Hi,

I have a piece of software that monitors the system for core
temperature and fan speed, etc. The monitoring is done by a service
and a separate program connects with this service to read the values
it needs and presents them to the user.
When logging on the program starts before the service is able to start
and so it will generate an error. After I click away this error and
start the piece of software again all is fine since the service has
been started by then.
You can make services dependent upon other services so they will wait
until the dependent services have been started. Is there a way to do
this with a non service (read program)? I could probably write a small
program that checks if the service has been started and if not it will
sleep for another 5 seconds before trying. If it is started then it
calls the specific program and will exit. But this is a lot of work
for something that might be solved easier. Anyone??

Set the startup type for the service to "manual" in Computer
Management, then create a batch file with just two lines, e.g.

net start <whatever service name>
<drive:>\<path>\<monitor utility name.exe>

and put a shortcut to the batch file in the Startup group of your
Start List.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top