0

We have an application that needs to be running all the time, and automatically restart when the server reboots. Sounds like a great job for a Windows service! The only problem is that the company that created this software was not so thoughtful :-(

Does anyone have any expereince with getting a regualr windows application to run as a service? I have found a product from Eltima Network that appears to target this problem.

Does anyone have any expereince with this product, or another product that accomplishs the same goal? Perhaps a free, open source, or Microsoft solution?

Thanks!

Richard West
  • 2,978
  • 12
  • 44
  • 49

3 Answers3

3

Pitty you don't tel us what version of Windows your running, 2000, 2003 or 2008.

I had to run a simple program as service once on a Windows 2003 server and used srvany.exe for it. Its part of the Windows Server 2003 resource kit that you can download for free from the microsoft download site.

Windows Server 2003 resource kit download.

A KB article of srvany for Windows 2000 that might get you on track. support.microsoft.com/kb/137890

Hopes this helps you out a bit!

John Gardeniers
  • 27,458
  • 12
  • 55
  • 109
  • Here's some rep so you can create more than one link next time. As the KB article shows, srvany has been around for a long time and I can't see it disappearing any time soon. – John Gardeniers Oct 16 '09 at 23:02
2

That commercial offering you're referring to is "adding value" by being nice to applications it hosts-- trying to close them gracefully when the service control manager asks it to "stop", etc.

You can get a lot of that functionality from something like NSSM - the Non-Sucking Service Manager, SRVANY (from various Windows resource kits), or any other number of similiar projects out there. What you won't get from those tools is obsessive attention to shutting down applications cleanly like that commercial tool you mentioned.

Evan Anderson
  • 141,881
  • 20
  • 196
  • 331
0

You can create your own Windows Service in C#. Its very simple. Then start up your app via the service on service startup & stop the app on service shutdown.

Ganesh R.
  • 252
  • 2
  • 8