sty+ct+ap crash alot... again

For all the help you need with Armagetron!
Post Reply
User avatar
aP|Nelg
Match Winner
Posts: 621
Joined: Wed Oct 22, 2014 10:22 pm
Contact:

sty+ct+ap crash alot... again

Post by aP|Nelg »

This happened back in 2013 http://forums3.armagetronad.net/viewtop ... 79&t=23184
Though this crashing seems to be for a totaly different reason. I've upgraded to r1041 and the crashing problem started. I am thinking that I might have to revert back to r1040 but I dont know that a slap being reversed could really have caused that much change! It (once again) seems to kind of freeze where the auto restart script cannot restart it. I'll post the end of a ladderlog and console log later.
User avatar
aP|Nelg
Match Winner
Posts: 621
Joined: Wed Oct 22, 2014 10:22 pm
Contact:

Re: sty+ct+ap crash alot... again

Post by aP|Nelg »

Startup script

Code: Select all

#!/bin/bash
id="ID_GOES_HERE_" 
sid=$id
##################################
#######     Armagetron     #######
#######      Advanced      #######
#######     STY+CT+aP      #######
##################################
loc="/home/armagetron/"
tron=$loc"svr-ap/bin/armagetronad-dedicated"
server=$loc"/serverdir/$id/"
var=$server"var"
ladderlog=$var"/ladderlog.txt"
settings=$server"settings"

command=$server"command.txt"
consolelog=$var"/consolelog.txt"
console=$server"console.txt"

#default script command
 dsc="/usr/bin/php"
 script=$server"/start/scripts.php"

while true; do
    rm $console
    touch $console
    $tron --vardir $var --userconfigdir $settings --userdatadir $server --input $command | tee -a $console
    echo "Server will restart in 5 seconds. Press Ctrl+C to cancel."
    echo "[no_info] ============== SERVER RESTARTING ==============" >> $consolelog
    sleep 5
done
Funny now I can't reproduce the crashing. :P
Post Reply