SRCDS Steam group


Auto Start CSS Server
#1
Hi Guys,

could someone give me a complete idiots guide to get a CSS server to start when a server is powered up?

its just every time my server is restarted or looses power i have to go in manually and start the game,

Could someone make a easy to follow tutorial for doing this?

Thanks.
Reply
#2
I use runlevels for that. (on Ubuntu 6.06)

1. Create a script to run you server and save it.
Ex: Create /etc/init.d/gameservers with this content :
Code:
#!/bin/bash

cd /path/to/srcds
./srcds_run -game cstrike -your options

2. Add your script to runlevel by creating symbolic links (here 2 and 5, depends on the OS)
Code:
cd /
ln -s /etc/init.d/gameservers /etc/rc2.d/S99gamerservers
ln -s /etc/init.d/gameservers /etc/rc5.d/S99gamerservers
Reply
#3
Would this be the same with Ubuntu 7.10?
I was going to ask this question myself but seen this post.
I am looking for one that will auto start the servers, also if a server for some reason stops responding I would like it to auto start back up. Smile
I'm a little bit new to linux, so any help would be great. Thanks.
Reply
#4
if u are using centos, add ur /etc/rc.local file
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)