Difference between revisions of "Linux Server"

From Oldunreal-Wiki
Jump to navigation Jump to search
m (Protected "Linux Server" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
Line 1: Line 1:
To start a Linux server via Terminal I use the following script inside the Unreal/System directory:
To start a Linux server via Terminal I use the following script inside the Unreal/System directory:


until ./UCCLinux.bin server DMDeck16?Game=Unrealshare.Deathmatchgame; do
    until ./UCCLinux.bin server DMDeck16?Game=Unrealshare.Deathmatchgame; do
    echo "Server 'UCCLinux.bin' crashed with exit code $?. Respawning.." >&2
        echo "Server 'UCCLinux.bin' crashed with exit code $?. Respawning.." >&2
    sleep 1
        sleep 1
done
    done


this way the server is restarted automatically in case of a crash, but won't do it if the server is shut down nicely.
this way the server is restarted automatically in case of a crash, but won't do it if the server is shut down nicely.

Revision as of 08:26, 29 September 2012

To start a Linux server via Terminal I use the following script inside the Unreal/System directory:

   until ./UCCLinux.bin server DMDeck16?Game=Unrealshare.Deathmatchgame; do
        echo "Server 'UCCLinux.bin' crashed with exit code $?. Respawning.." >&2
        sleep 1
   done

this way the server is restarted automatically in case of a crash, but won't do it if the server is shut down nicely.


to start it from remote and being able to disconnect then I use: nohup ./serverstart &


the log will be then in the file nohup.out, but watch it, it can grow very big over time.