Reputation: 1001
I want to start a windows service which I have created from another windows service. I am using the service Controller which is available. But when I try to start the service I get a message, "Cannot open MyTestService service on computer '.'"
I am working on the windows xp operating system. I have given the Account for the service which I am trying to start as LocalSystem and I also tried with Localservice account.
Do I need to give special permissions to the windows service, to be able to started by another service.
Upvotes: 1
Views: 1506
Reputation: 1152
Have you also considered to establish dependencies between your Windows Services. This way when your server reboots Windows will order all services according to their dependencies.
Here are a couple useful links:
Upvotes: 2
Reputation: 55082
Does it explain the reason? A service won't be marked as running if it immediately returns from the 'Start ()' call (i.e. it's finished). What does your service code look like, basically? Can you start the service through services.msc
?
Upvotes: 0