SRCDS Steam group

Starting srcds with the server.
With all the storms and whatnot my hosting company has had a couple blips of power outages. Sometimes my server reboots, which sucks for me as I can not seem to get a script to start up my servers.

I have a user srcds, i called him halflife. Can anyone help me make a bash script to run the server as the user named halflife?

I try to just call the script i have that starts it in a screen session

echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server /newhome/halflife/srcds/srcds_run -console -game cstrike +map gg_mini_m$

I get path errors and I can't get it to run as anything but root.
Any ideas?
Blah.. i'm a tard I just added the cd /newhome/haflife/srcds to rc.local and a sudo -u halflife
bam! done.

Forum Jump:

Users browsing this thread: 1 Guest(s)