I just got my new VPS set up and its absolutely awesome! I am currently testing a game server on this box to see how it will run, however, my main function will be web site hosting.
I got the server set up just fine but when I disconnect from SSH it kills the game server process. So I got this script to start the server, how can I make this script execure on boot instead of having to activate it using SSH every time?
start.sh:
Code:echo “Starting Server” echo “cd ..” echo “cd ..” echo “cd /home/*user*/” echo “sh start.sh” screen -A -m -d -S servername /home/*user*/srcds_run -console -cstrike +map de_dust2 +maxplayers 26 -autoupdate -IP xxx.xxx.xxx.xxx -port 27015 +fps_max 200 -tickrate 66 -pingboost 3 echo “Server Starting…” echo “Parameters srcds_run -console -cstrike +map de_dust2 +maxplayers 26 -autoupdate -IP xxx.xxx.xxx.xxx -port 27015 +fps_max 200 -tickrate 66 -pingboost 3″ echo “…Server Started”


LinkBack URL
About LinkBacks




Reply With Quote
Bookmarks