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 startserver.sh script i have that starts it in a screen session
#!/bin/sh
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?
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 startserver.sh script i have that starts it in a screen session
#!/bin/sh
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?