SRCDS Steam group


auto start srcds in star up pls
#1
hi iam new and i use serch and i dont fine any think help me
i ahve this detected server ubuntu 10.04 (lucid) leaseweb
and if the server restart or the power off
my frend call me to open the server css
so i need the server auto run in my machin
Reply
#2
put the start script into /etc/rc.local. but make sure the start script exits immediately, else booting will never really finish... i.e. make sure the start scripts starts the server in a screen session or so...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
i have file called server.sh
./srcds_run -console -game cstrike +map de_dust2 +maxplayers 32
and if i run him the serrver open
so you want me move this file in /etc/rc.local or what
Reply
#4
edit the file /etc/rc.local and put the following somewhere at the end:
Code:
screen -mdS srcds sudo -u <username> /path/to/server.sh
replace "<username>" with the name of the user you want to run the server with (do not use root!), and replace "/path/to/server.sh" with the full path of that server.sh script. make sure that script contains some cd command to change to the server directory before calling srcds_run, else it will not work.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)