www.ClassicTW.com
https://mail.black-squirrel.com/

Running as a service on XP Pro SP2
https://mail.black-squirrel.com/viewtopic.php?f=1&t=17476
Page 1 of 1

Author:  Darkstarbase [ Thu Jun 29, 2006 7:28 pm ]
Post subject: 

Has anyone seen this problem? TWGS crashing when you exit the game manually or when stopping the service as in a batchfile using the twgsserv.exe stop? It seems to crash everytime. It only crashes when running as a service.

The machine is stripped down with nothing else running at the same time.. no AV, nothing else runs on the machine. I have also stopped all services not directly needed to run.

I have installed TWGS on 2 machines one XP Home and 1 XP Pro and they both crash on exit while running as a service.

anyone?

Author:  Thrawn [ Thu Jun 29, 2006 8:11 pm ]
Post subject: 

quote:Originally posted by Darkstarbase

Has anyone seen this problem? TWGS crashing when you exit the game manually or when stopping the service as in a batchfile using the twgsserv.exe stop? It seems to crash everytime. It only crashes when running as a service.

The machine is stripped down with nothing else running at the same time.. no AV, nothing else runs on the machine. I have also stopped all services not directly needed to run.

I have installed TWGS on 2 machines one XP Home and 1 XP Pro and they both crash on exit while running as a service.

anyone?


When I first ran the TWGS, it was on 2000. It would load as a service, but I experienced a similar problem. Then it would not load properly at all, and my event viewer showed it had problems running as a service.

When switching to XP Pro, I again noticed my TWGS crashing as a service. So now I run mine via a shortcut in the Start Menu> Programs> Start Up.

The only advantage when running as a service is if the machine reboots, then the program will load and your players can connect, even if you are not logged in as a user on that machine. I had tracked that while the TWGS service tried to load, it was interfering with other services I was running. I too had scaled down to nothing running on it, but to no avail was I able to solve the issue. Hence I now use a shortcut.

I found that running as a shortcut gave me a better advantage as a SysOp. If you've ever visited http://www.outpost-4.com, you will notice I have a status indicator I display with the servers status. I launch my TWGS via a batch file. When it starts, it updates the indicator. When I exit, it changes the indicator to offline and then terminates the batch. So as a shortcut, it clearly gives the advantage for control, and any type of automation or special features you may want for your site.

The disadvantage to the shortcut is if the machine reboots, then you are at the login prompt (unless you have it going to Windows after booting). There are some utils that will auto-login on some systems. Until you login, your TWGS is not running and inactive. On my particular server, I have multiple profiles, but it does log in the profile automatically (Tweak UI has the Network tab to login) for me.

I hope this will give you an idea of different solutions. I'm still trying to track specifically where the error comes in, or when. And with so many services (ex: TWGS, web servers, mail servers, etc), there is so much that can cause a hiccup at start.

Author:  RexxCrow [ Thu Jun 29, 2006 8:40 pm ]
Post subject: 

If this helps is from JP's recent call for bugs thread:

quote:Originally posted by Vulcan

Also there is an issue of the twgs setting as a service on windows server 2003, it will set as a service, but will not let you access the GUI, this is from a sysops standpoint, cause if we can't set it as a service on an online server we have to keep the connection live, so that the twgs will not shut down from a logoff, and can't log off the server, only way we can disconnect and keep the game running is to click the close window to just disconnect, and if a server has more than one admin on it, the server keeps the connection used, and if there are say 3 admins on the server and one connection is live from one admin disconnecting and the other two need to get on to work on things, one can't cause of the active connection of the admin that disconnected.

I have talked to a couple of sysops that have online servers and have twgs on them, and we all have this problem, but on a side note, the twgs works as a service on XP home, and pro with no problems, and on older versions of windows. It just gives problems on windows server 2003 as a service. Thanks JP for letting us get out some of the bug reports so as to improve things, but if the service issue can't be fixed too easily then no problem on the issue, I have been doing the disconnect work around on it for a couple of years now, and have shown the others with this issue on how to do the same.

Also for any other sysops that has the service issue on the twgs with server 2003 get with me and I will show you this work around too.


I also recall something about a problem regarding being logged in on the admin account (or not being logged in on the admin account) that caused or solved some type of issue(s), not sure exactly what it had to do with though? Other then pertaining to TWGS running as a service.

WABBIT give some outstanding advice in this thread as well:
http://www.tw-attac.com/TWForum/topic.a ... C_ID=3046&

Author:  Darkstarbase [ Thu Jun 29, 2006 9:39 pm ]
Post subject: 

Yes Rexx I did a search and read before I posted the above. It doesnt address the problem I am having.

Author:  RexxCrow [ Thu Jun 29, 2006 11:29 pm ]
Post subject: 

Yea, from what I read on this it is pretty buggy, only work around it seems is to just it run at start or go along with EP's suggestion, from what I found in my reading.

quote:Originally posted by ElderProphet

The task scheduler doesn't rely on logons. So instead of dropping the shortcut in the Startup folder, create a scheduled task to launch the shortcut when the computer starts. Not sure about other OSes, but WinXP has that option.

+EP+

Author:  Vulcan [ Fri Jun 30, 2006 5:59 am ]
Post subject: 

also check to see if the telnet server is on on your puters, if it is shut it off. sometimes this interferes with the twgs as a service, cause they both use telnet. I had the same problem on my Xp puters too, and this fixed my problems, but it will not setup as a service properly on windows server 2003 tho. So have to leave my account running on the online server and just disconnect. without logging off, this works for me on that one, but try what I suggest on the xp machines and see if it helps.

Author:  maidenariana [ Wed Aug 02, 2006 7:49 pm ]
Post subject: 

I use FireDaemon to keep my TWGS server always up. It works flawlessly even after power failures, etc. I also use it to kick off serveral java processes I wrote to query the TWGS server, etc. It is a great program. I started using it when it was still free in Beta, and liked it so much I ended up buying it. There is a 30-day trial version available here (sorry no more beta versions i guess):
http://www.firedaemon.com/downloads-firedaemon-pro.php

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/