screen killing the server?

Post here if you need help setting up your server, etc.
Post Reply
superkikim
On Lightcycle Grid
Posts: 37
Joined: Tue Jan 08, 2008 1:40 pm

Post by superkikim »

Hi.

I use GNU Screen for my arma servers. It works quite well, however, for an unknown reason, it kills the process after some hours, sometimes two or three days...

I have no clue why ! Would anyone know why ?

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

Post by Z-Man »

Use DEDICATED_IDLE 0 if you want your server to run forever without quitting, or, better, launch them from a shell script that runs it over and over again.
superkikim
On Lightcycle Grid
Posts: 37
Joined: Tue Jan 08, 2008 1:40 pm

Post by superkikim »

Z-Man wrote:Use DEDICATED_IDLE 0 if you want your server to run forever without quitting, or, better, launch them from a shell script that runs it over and over again.
I have to create a script which launch screen which launch arma in a loop ...

RIght now, my script launch screen which launch directly arma...

Will do that next week.

Tx for the advice.

PS: Can you please just give me the trick for a loop ? I use bash.
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Sure, it's easy:

Code: Select all

#!/bin/sh
while true; do
   armagetronad-dedicated "$*"
done
The $* passes all arguments of the script to arma.
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Post by ivantis »

something on the wiki i posted (c10ud gave the script to me): http://wiki.armagetronad.net/index.php? ... to_restart
Image
Image
Image
superkikim
On Lightcycle Grid
Posts: 37
Joined: Tue Jan 08, 2008 1:40 pm

Post by superkikim »

Hi all,

Finally, I have sorted this out. As stated on another post, I've posted a guide on the Wiki:

http://wiki.armagetronad.net/index.php? ... x_computer

Feedback welcome.
Post Reply