Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

FreeLancer as a Windows service

Here SysOps can list their MultiPlayer server info and users can send feedback to their SysOps. Or just talk about the MultiPlayer servers they play on. This is not about MultiPlayer in general - please use the MultiPlayer Forum for that!

Post Sun Apr 20, 2003 4:21 pm

FreeLancer as a Windows service

Hi,

I'm setting up a dedicated FreeLancer server on Windows 2000 Server, using FLAdmin to keep it running and provide remote admin, with the hope it'll be stable enough to keep 24/7.

Got it up and running but I'd like it to auto-start when the server boots. Any server admins got FreeLancer running as a "service" under windows so it starts automagically on boot-up/restart, without having to login and run the server executable?

Same for FLAdmin for that matter?

There's a tool in the NT4 resource kit which allows you to run an app as a service and it might work under 2K and I've encounted a few shareware/PD equivalents, but I was wondering if anyone has actually done it already before I go off and re-invent round transportational aids.

Ta!


--

>bRydeR<

Post Sun Apr 20, 2003 11:09 pm

Unfortunately, it won't work. I tried several times using srvany, but the GUI portions of the server need to have a "desktop" login to interface with. I would end up with a hung process or a failed service start. It's unfortunate that an MS game doesn't support this and has features that keep it from being done "home brew" style.

Post Mon Apr 21, 2003 4:18 pm

I was actually wondering about this as well, the way I can see it working is to place it in startup folder and use a script that would hit the okay button. Haven't played with it as of yet...

cej

Post Mon Apr 21, 2003 9:43 pm

(SR) Syndicate is running FLSERVER as a service using Fire Daemon. I got it work, however, I had to run it in an interactive desktop mode the first time to setup the console and server settings. Install the service and then stop it and go back into properties. add the /c switch and then make the service non-interactive with the desktop (It's just a check box on the settings tab). It will run as a service from that point forward. I tried to load FLAdmin but it doesn't want to play with FD well. Probably due to the fact that it cannot get exclusive access to the app (which is now a service).

Fire Daemon is at www.firedaemon.com. If there is a lot of interest in how to do this, I will draft a how to guide and get it to the LR folks to publish.

CEJ
SysAdmin for (SR) Syndicate FL Server

Post Tue Apr 22, 2003 11:10 am

I've since tried with the NT resource kit tool (SRVANY?) but couldn't get it to work because of the interaction with the desktop. I think FireDaemon is a bit more sophisticated in this respect so I'll download a recent version (not used FD for years!) and give it a go.

Bit concerned about running without FLADmin, at least until FLServer is patched and a bit more stable. I'm assuming the reason it doesn't work as a service is that it hooks into the FLServer GUI. I'm no Win32 programming expert but I presume it'd be fairly easy to adapt the code to have it monitor a service instead of an application.

Maybe if that guide were written and more server ops were running it as a service we could persuade FLiK to make the necessary changes! ;-)


--

>bRydeR<

Post Tue Apr 22, 2003 11:32 am

The /c parameter to FLServer.exe makes the server silent, so you have no interaction with the desktop!

cej

Post Tue Apr 22, 2003 5:55 pm

"Bit concerned about running without FLADmin, at least until FLServer is patched and a bit more stable. I'm assuming the reason it doesn't work as a service is that it hooks into the FLServer GUI. I'm no Win32 programming expert but I presume it'd be fairly easy to adapt the code to have it monitor a service instead of an application."

Well, the Fire Daemon restarts the server automatically, just like a service. It does bomb out once and a while, and all you have to do is restart the service.

I use FLPing to check the server. It's a pretty cool little CLi utility that you run from a CMD dialog.

CEJ
SysAdmin for (SR) Syndicate FL Server

Edited by - CEJ on 22-04-2003 18:57:00

Post Tue Apr 22, 2003 6:14 pm

"Well, the Fire Daemon restarts the server automatically, just like a service. It does bomb out once and a while, and all you have to do is restart the service."

Presume you mean automatically on server boot-up (as per any Windows service set to auto in NT/2K/XP) rather than on a server crash?

The server is remote and normally unattended so it'd be difficult to connect regularly to restart the service - really needs to be done automatically, considering the stability issues with current version of flserver.exe


--

>bRydeR<

cej

Post Tue Apr 22, 2003 8:08 pm

"Presume you mean automatically on server boot-up (as per any Windows service set to auto in NT/2K/XP) rather than on a server crash?

The server is remote and normally unattended so it'd be difficult to connect regularly to restart the service - really needs to be done automatically, considering the stability issues with current version of flserver.exe"

Actually no. My server is remote as well. I use a remote console utility similar to VNC or PCAW to control it.

FD will restart the service when it fails, however, sometimes the service does not load correctly and thus, it bombs out. I have only had it bomb out once.

When the server bombs out (it really does appear to be a mem leak), the server stays up, the service appears to be running, and the server does not have any additional issues (my NWN and TS service is unaffected). I just have to attach to the server, open up the FD tool and restart the service via the tool bar. Takes about 3 mouse clicks once I attach to the server.

Again, I use FLPing to make sure the server is up.

CEJ
SysAdmin for (SR) Syndicate FL Server

Edited by - CEJ on 22-04-2003 21:10:10

Post Tue Apr 22, 2003 10:47 pm

"When the server bombs out (it really does appear to be a mem leak), the server stays up, the service appears to be running, and the server does not have any additional issues (my NWN and TS service is unaffected). I just have to attach to the server, open up the FD tool and restart the service via the tool bar. Takes about 3 mouse clicks once I attach to the server."

Thanks for the input... I'll have a dablle with FD over the weekend when I have more time. At the moment I'm running it in a Terminal Server session so aid remote management but it's far from ideal.


--

>bRydeR<

cej

Post Wed Apr 23, 2003 12:18 am

Chck out VNC. It's worth a look as well as being an open source product.

I am using the pro version of FD, but you should try the lite version first. Let me know if you have issues and I will walk you through what I did.

CEJ
SysAdmin for (SR) Syndicate FL Server

Post Wed Apr 23, 2003 9:58 am

"Chck out VNC. It's worth a look as well as being an open source product."

Had VNC running on an earlier server build but wasn't entirely happy with it (don't recall why) and reverted to pcAnywhere.

Don't have either on my current build as I found Terminal Services a bit quicker than either product and XP has the client installed "out of the box". A couple of the networks I need to connect to my server from don't pass traffic on the ports used by other remote control products but do allow RDP so I'm stuck with it anyway.

Only PITA thing is that you can't remote control the console session using Terminal Services, which pcAw and VNC both allow. Not ideal at the moment as it means running FLServer.exe in a TS session to allow remote admin, but hopefully that will no longer be necessary if I get it running under FireDaemon.



--

>bRydeR<

Return to Freelancer Server Forum