Raised This Month: $ Target: $400
 0% 

[Linux] HLDSWatch - hl/srcds monitoring and auto restarter script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vase070
Senior Member
Join Date: Jun 2011
Old 02-04-2014 , 00:51   Re: [Linux] HLDSWatch - hl/srcds monitoring and auto restarter script
Reply With Quote #1

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
vase070 is offline
Hackerpcs
Member
Join Date: Jul 2012
Location: Greece
Old 02-17-2014 , 19:00   Re: [Linux] HLDSWatch - hl/srcds monitoring and auto restarter script
Reply With Quote #2

Quote:
Originally Posted by vase070 View Post
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
I wonder that too, how to use the script.

Last edited by Hackerpcs; 02-17-2014 at 19:00.
Hackerpcs is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 02-28-2014 , 21:22   Re: [Linux] HLDSWatch - hl/srcds monitoring and auto restarter script
Reply With Quote #3

Oshi..didn't expect people would dig out this topic again

Quote:
Originally Posted by vase070 View Post
i commented the other lines because i dont have any srcds servers is that ok or should i leave them the way they were ?
That's fine, the script ignores any lines starting with #

Quote:
Originally Posted by vase070 View Post
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
Yes. That config.cfg refers to config file that supplies server start commands. You can name the file anything.
__________________
HLDSWatch - HLDS monitoring and auto restarter script
Mlk27 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode