S
Simon Morris
I'd like a system service to be able to restart itself. I have a batch
file that stops and starts the service if I run it from a command line.
If that file is run from the service itself, then it stops the service,
but reports "OpenService FAILED 5: Access is denied" when it tries to
start the service.
The command line that works is run by the same user as the service logs
in as, so I think the permissions must be OK - and would it take more
permissions to start a service than to stop it?
Any ideas?
Thanks
file that stops and starts the service if I run it from a command line.
If that file is run from the service itself, then it stops the service,
but reports "OpenService FAILED 5: Access is denied" when it tries to
start the service.
The command line that works is run by the same user as the service logs
in as, so I think the permissions must be OK - and would it take more
permissions to start a service than to stop it?
Any ideas?
Thanks