server starter script

Something else for Armagetron? Goody!
Post Reply
epsy
Adjust Outside Corner Grinder
Posts: 2006
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

server starter script

Post by epsy »

Code: Select all

A little server starting script written in python.

* wont work on windows
* will let you give console input
* logs and outputs to stdout server output
* aborts if the server failed twice in a row to last more than 30 seconds

Running it
==========

First edit the beginning of it

    servers = {
        'bugfarmserver': {
            'prefix': '/home/epsy/arma-trunk/',
            'data': '/home/epsy/bugfarmserver/',
            }
        }

Change paths so you have an armagetronad install using this prefix, and so that you have a config/ and var/ folder in the folder specified as 'data'. Put your config files in place according to the armagetronad docs.

To start the server, run

    python ./startserver bugfarmserver

Enjoy.
Attachments
startserver.not.ace
python script (NOT .ACE)
(4.2 KiB) Downloaded 182 times

User avatar
theroze
Match Winner
Posts: 596
Joined: Mon Aug 10, 2009 7:30 am
Location: 47 72 69 64

Re: server starter script

Post by theroze »

epsy wrote:* wont work on windows
>.<
apparition wrote:You being able to kill so many players that quickly and efficiently is evidence that the community skill level must be dropping... Sad :/
Reigning champion of: Sir-spam-a-lot 2011

epsy
Adjust Outside Corner Grinder
Posts: 2006
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Re: server starter script

Post by epsy »

Well I suspect I'm using stuff that windows doesn't implement in there. If you wanna check remove the windows check and try for yourself.

User avatar
AI-team
Shutout Match Winner
Posts: 1021
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: server starter script

Post by AI-team »

Meh , I can't open .ace files on windows.
Do you think you could upload it as a .gz , .zip , whatever?
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 

User avatar
Z-Man
God & Project Admin
Posts: 11438
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: server starter script

Post by Z-Man »

As the filename suggests, it's not an ACE file at all.

User avatar
AI-team
Shutout Match Winner
Posts: 1021
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: server starter script

Post by AI-team »

Still cant open it with WinRAR
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 

User avatar
Z-Man
God & Project Admin
Posts: 11438
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: server starter script

Post by Z-Man »

Just remove the extension and replace it with .py :)

User avatar
AI-team
Shutout Match Winner
Posts: 1021
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: server starter script

Post by AI-team »

Oops , I thought it's a packed file :wink:
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 

Post Reply