View Single Post
X-5173
Member
Join Date: Dec 2006
Location: Bucharest, Romania
Old 10-17-2009 , 22:41   Re: Linux hlds_run not automaticly restarting on crash
Reply With Quote #15

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
Thanks for sharing this mate!
__________________
X-5173 is offline