/build/static/layout/Breadcrumb_cap_w.png

Service started and stopped immediately

Hi all,
When i install my application(in which i have included a service) and try to start the service, i get the following message.
"The Service on the local computer Started and stopped
immediately. Some Services stop automatically if they have no work to do
so, for example, Performance log and alert services."
But i need this service to be started. Can someone help me in this..
Thanks in advance......

0 Comments   [ + ] Show comments

Answers (7)

Posted by: spartacus 15 years ago
Black Belt
0
ORIGINAL: rayz_0020
But i need this service to be started. Can someone help me in this..


Then for anyone to realistically be able to help here we need more information, as a minimum the following :

Is this a Windows Installer package ?
Application Name ?
Application Version ?
Service Name ?
Service set to run under LocalSystem, or a specific account ?

plus any additional information from the Event Log (if any)

Regards,

Spartacus
Posted by: anonymous_9363 15 years ago
Red Belt
0
Everything Graham says is true, of course, but, can you guess what m suggestion is?

ProcMon, ProcMon, ProcMon. It will show you imemdiately any file or registry access failures. Almost without question, your service failed to start because of some missing dependency or, less likely, inadequate permissions for the account trying to start it.
Posted by: rayz_0020 15 years ago
Senior Purple Belt
0
Yes, this is a windows installer package.
The App Name is HP OVSD 4.5 agent
version - 4.0.25
Service name - Hp OVSD (sd_agentservice.exe)
The service is not set to run under any account. Should run for everyone.

The previous version of this app (4.0.17) has the service which runs fine.
The previous version has the agent and client together in one msi whereas the present version has separate msi's for agent and client.
I have included the service in the agent.
Posted by: anonymous_9363 15 years ago
Red Belt
0
ORIGINAL: rayz_0020
The service is not set to run under any account. Should run for everyone.
...except that normally, of course, the 'Everyone' group has no rights to start and stop services. Most environments in which I've worked use specific accounts for services, where the account name matches the service name: that account's *sole* purpose is to operate the service. It will generally have no interactive logon etc, etc.
Posted by: AngelD 15 years ago
Red Belt
0
You can use the ServiceControl table to start/stop during install/uninstall.
Did you try that?
Posted by: rayz_0020 15 years ago
Senior Purple Belt
0
hey guys,
Thanks for all those replies.. I got it resolved.. It was because of a missing (dependent)Registry. Now its workin fine.. Cheers...
Posted by: a_muthukumar26 13 years ago
Yellow Belt
0
Hi,

I have the same issue that u have resolved.

Can u please specify me clearly about that missing registry and its path.

Thanks in advance......
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ