.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Multiplayer and AARs

Reply
 
Thread Tools Display Modes
  #141  
Old November 9th, 2008, 03:17 PM
ano's Avatar

ano ano is offline
Lieutenant Colonel
 
Join Date: May 2007
Posts: 1,462
Thanks: 34
Thanked 59 Times in 37 Posts
ano is on a distinguished road
Default Re: LlamaServer: status and bug reports

I see that Victoria game page has been restored. Is it possible to restore the Stasis game as well?
Reply With Quote
  #142  
Old November 9th, 2008, 03:28 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: LlamaServer: status and bug reports

My experience is that cron can hiccup if you get too much text output. So if you have text output from the scripts that might be the problem.
__________________
http://www.illwinter.com
Reply With Quote
  #143  
Old November 9th, 2008, 04:35 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: LlamaServer: status and bug reports

ano - sure, sorry, I'd missed that it had gone.

JK - thanks for that.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #144  
Old November 9th, 2008, 04:43 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: LlamaServer: status and bug reports

If you don't need the text output just redirect it to /dev/null
you could redirect stdout by using cmd > /dev/null, stdout and stderr by cmd >& /dev/null that is if you're uusing sh or bash. Other shells have similar concept but possibly slightly different syntax.
Reply With Quote
  #145  
Old November 9th, 2008, 04:48 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: LlamaServer: status and bug reports

At the moment I've got "&> log", where log is a log file. So I guess probably that would sidestep the issue?
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #146  
Old November 9th, 2008, 06:47 PM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default Re: LlamaServer: status and bug reports

Are you running on an NFS-mounted drive?

Also what do you think of making your cron create a lock file so your server is only ever running one game at a time? You could write a little C program to exec dom to do that, and wrap the exec call with an open() of the lock file with O_CREAT+O_EXCL flags.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?

Last edited by vfb; November 9th, 2008 at 06:55 PM..
Reply With Quote
  #147  
Old November 9th, 2008, 07:02 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: LlamaServer: status and bug reports

Er, NFS? Knowledge fail by me.

It only runs one game at a time, although I didn't quite follow that about the lock flags. It just makes a file when it starts hosting, and deletes it when it's finished, and only starts if the file doesn't already exist. There's actually like a bazillion checks and stuff in there, added incrementally to make things more robust. Still, suggestions are always welcome.

No crashes over the last 7 or 8 hostings. Could it be... working? Who can say? Presumably it will go mad as soon as I go to bed.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #148  
Old November 9th, 2008, 08:07 PM
Lingchih's Avatar

Lingchih Lingchih is offline
General
 
Join Date: Sep 2004
Location: Irving, TX
Posts: 3,207
Thanks: 54
Thanked 60 Times in 35 Posts
Lingchih is on a distinguished road
Default Re: LlamaServer: status and bug reports

Llama, I'm afraid that you are going to have to stay awake and at the machine at all times. It appears it does not like it when you leave. Sounds a bit like a cat.
Reply With Quote
  #149  
Old November 9th, 2008, 08:24 PM
archaeolept's Avatar

archaeolept archaeolept is offline
Lieutenant General
 
Join Date: Feb 2004
Posts: 2,687
Thanks: 20
Thanked 54 Times in 39 Posts
archaeolept is on a distinguished road
Default Re: LlamaServer: status and bug reports

i think we're going to need electrodes that can be accessed from the server status pages
Reply With Quote
  #150  
Old November 9th, 2008, 10:48 PM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default Re: LlamaServer: status and bug reports

Quote:
Originally Posted by llamabeast View Post
Er, NFS? Knowledge fail by me.

It only runs one game at a time, although I didn't quite follow that about the lock flags. It just makes a file when it starts hosting, and deletes it when it's finished, and only starts if the file doesn't already exist. There's actually like a bazillion checks and stuff in there, added incrementally to make things more robust. Still, suggestions are always welcome.

No crashes over the last 7 or 8 hostings. Could it be... working? Who can say? Presumably it will go mad as soon as I go to bed.
I thought you might have network-mounted some additional drive space using NFS, since earlier you said it ran out. But if you're not sure, then it's pretty unlikely you're using it.

Using open() just makes the file existence check and creation atomic. You can probably do it from perl or php or some other scripting lang.

If you've just got a script that does
Code:
if [ ! -f mylockfile ]
then
  touch mylockfile
  do stuff
  rm mylockfile
fi
Then there is a chance two copies can execute at the same time if both do the check first before touching the lock file.

And when the first one finishes, it will remove the lock file while the other is still running, allowing another to start, etc.

But it would be a really rare problem I think, so it's unlikely to have caused what you're dealing with now.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:41 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.