Windows Server 2003
1820257 Members
2856 Online
109622 Solutions
New Discussion

srvany.exe hangs on machine reboot

 
Ian Lochray
Respected Contributor

srvany.exe hangs on machine reboot

I have an application that is started as a service using srvany.exe. On all my machines apart from one this works perfectly. On one machine, when I reboot the server (the service is set to automatic), the srvany.exe process just sits there after startup doing nothing. If I kill it then start the service from the services panel, the application starts OK.
Any ideas?
1 REPLY 1
WFHC-WI
Honored Contributor

Re: srvany.exe hangs on machine reboot

Hi Ian,

Do you have access to a properties page for this created service? If so...

What are the failure recovery settings for this service? I would set them perhaps to restart the service after 5 minutes.

Another option is to create a batchfile to manually start the service and have it run as a scheduled task on startup.
net start

Is the service still set to start Automatically (this is the default when creating a service with srvany)? Are there dependent services that the application needs to have running before it will start successfully?