View Single Post
6inki
Junior Member
Join Date: Nov 2009
Old 12-01-2009 , 20:11   Re: Linux hlds_run not automaticly restarting on crash
Reply With Quote #16

Quote:
Originally Posted by vampire2k View Post
-autoupdate didn't work either but i got around to write that script, if anyones interested:
Code:
#! /bin/bash
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"

while [ true ]; do
        ./hlds_i686 -game ns -maxplayers 32 -pingboost 1 +map co_faceoff +ip 78.143.28.20
        echo "Server crashed at '`date`' - Restarting"
        echo "Server crashed at '`date`' - Restarting" >> crash.log
        sleep 5
done
This seems to work, thread can be closed
I didn't understand where to put this script ????
6inki is offline