TGE Runnig As Windows Service
by Timothy May · in Torque Game Engine · 07/31/2005 (12:05 pm) · 9 replies
Has anyone wrapped TGE to run as a Windows Service?
I did a search on "Windows Service" and was suprised that no one has asked this question before (did I just miss a resource or thread?)
Anyway, we are building an immersive world that will have multiple dedicated servers running on Windows XP Pro. I would like to wrap the engine so that it has the Windows Service API and have the engine startup as a service when Windows cranks up.
Thanks for any insight! BTW, before anyone wastes their time - I would love to run on Linux but have other software resources that will be used alongside TGE that are only available on Windows at this time.
Tim
I did a search on "Windows Service" and was suprised that no one has asked this question before (did I just miss a resource or thread?)
Anyway, we are building an immersive world that will have multiple dedicated servers running on Windows XP Pro. I would like to wrap the engine so that it has the Windows Service API and have the engine startup as a service when Windows cranks up.
Thanks for any insight! BTW, before anyone wastes their time - I would love to run on Linux but have other software resources that will be used alongside TGE that are only available on Windows at this time.
Tim
About the author
#2
Good link. I found this http://www.codeproject.com/system/xservice.asp which may help quite a bit.
Our propretary analytics engine currently runs as a server. We use the Trolltech Qt library and it has a nifty "soultion" for making any Qt enabled app a service. The link above seems to do much the same thing but without dragging in all of the Qt libs. If we use this (or some other similar wrapper) we will post a resource with a example.
Regards,
Tim
07/31/2005 (1:49 pm)
Ben,Good link. I found this http://www.codeproject.com/system/xservice.asp which may help quite a bit.
Our propretary analytics engine currently runs as a server. We use the Trolltech Qt library and it has a nifty "soultion" for making any Qt enabled app a service. The link above seems to do much the same thing but without dragging in all of the Qt libs. If we use this (or some other similar wrapper) we will post a resource with a example.
Regards,
Tim
#3
07/31/2005 (2:01 pm)
For MS Windows, it would be easier to write a simple service that launches TGE than to modify TGE itself to run as a service. And also limited to MS Windows: if you can use .Net, you can have a service up and running in an hour. For pure C++ it would take a little longer, but there are sample service frameworks out there that you can modify to get up and running pretty quickly.
#4
08/01/2005 (1:56 pm)
It is pretty simple to set up a service that just calls a batch file (in this case TGE dedicated server).
#5
08/01/2005 (2:20 pm)
Can you just put "-service" at the end of a shortcut ?
#6
08/01/2005 (2:31 pm)
There is a little program in the Windows NT Resource Kit called "Srvany.exe" It allows any program to be run as an NT service
#7
http://www.firedaemon.com/
08/08/2005 (12:34 pm)
Also, we use something called "FireDaemon" which gives a number of options to your service, including the ability to interact with the desktop (i.e. if you want to see the log window or GUI of you app, this is vital).http://www.firedaemon.com/
#8
08/08/2005 (3:34 pm)
That's a neat thing.
#9
08/10/2005 (1:57 am)
Just curious what the "other software resources [...] only available on Windows" are? What gaps do the Linux people need to fill?
Associate Kyle Carter