ok so im a little confused here i hope you will help me so this is what i did
first i uploaded the script to my server [running debian 7] in my user witch my server is and put it in a new folder called hldswatch after that i reconfigured the servers.conf as you said like this
Code:
# Restart server on crash or when no response is received
# If autorestart is enabled; screen, command and startdir options are required to fill
# screen : name for screen session
# command : your server start command
# startdir : server dir path that contains hlds/srcds executable
[95.86.??.??:27015]
engine=goldsrc
autorestart=y
screen=cs_pub1
command=./hlds_run -game cstrike +ip 95.86.??.?? +port 27015 +maxplayers 31 +map de_dust2 +mapchangecfgfile server.cfg
startdir=/home/adminuser/servers/pub/
# Same as above
# [192.168.1.2:27016]
# engine=source
# autorestart=y
# screen=tf_pub1
# command=./srcds_run -game tf -etcetc
# startdir=/home/gameserver/pub/srcds_tf_pub1/orangebox
# Do not restart server
# Execute your own command when server crashes or doesn't respond
# [192.168.1.2:27017]
# engine=source
# autorestart=n
# command=send-alert-to-email.sh
# Do nothing when server crashes or doesn't respond
# Log message only
# [192.168.1.2:27018]
# engine=source
# autorestart=n
i commented the other lines because i dont have any srcds servers is that ok or should i leave them the way they were ?
and i was a bit confused were you said
Code:
Start the script with: screen -S hldswatcher ./hldswatch <config.cfg>
what config.cfg do you mean the servers.conf ? is this the way im suppose to start the script
Code:
screen -S hldswatcher ./hldswatch servers.conf
sorry for being a noob but i was really confused