Raised This Month: $89 Target: $400
 22% 

Cannot set Port in hlstats.conf


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gorgitko
Member
Join Date: Feb 2015
Old 04-14-2015 , 03:02   Cannot set Port in hlstats.conf
Reply With Quote #1

Hi,

when I set Port in hlstats.conf to something different than 27500, HLStats daemon still starts listening on port 27500. Is it bug?

Thanks!
gorgitko is offline
rodpod
SourceMod Donor
Join Date: Jan 2005
Old 04-29-2015 , 08:56   Re: Cannot set Port in hlstats.conf
Reply With Quote #2

the syntax is in wiki

assuming you have access to ssh (linux) in this example

you need to do:
./run_hlstats start 10 27700 1

this will tell to run 10 daemons starting from port 27700 and increase the number by 1 for every daemon. This will produce something like this (when you run command ps auxf | grep hlstats):
Code:
globsta+   508  0.0  0.0  11740   920 pts/12   S+   14:53   0:00              \_ grep hlstats
globsta+ 31835  0.0  0.1 144672 17416 ?        S    12:00   0:01 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27700
globsta+ 31847  0.0  0.1 144616 17396 ?        S    12:00   0:01 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27701
globsta+ 31859  0.0  0.1 144764 17556 ?        S    12:00   0:02 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27702
globsta+ 31871  0.0  0.1 144628 17364 ?        S    12:00   0:01 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27703
globsta+ 31883  0.0  0.1 140224 17020 ?        S    12:00   0:00 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27704
globsta+ 31897  0.0  0.1 140228 17076 ?        S    12:00   0:01 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27705
globsta+ 31909  0.0  0.1 140220 16984 ?        S    12:00   0:00 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27706
globsta+ 31921  0.0  0.1 140224 16964 ?        S    12:00   0:00 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27707
globsta+ 31933  0.0  0.1 140220 16980 ?        S    12:00   0:00 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27708
globsta+ 31945  0.0  0.1 140224 16968 ?        S    12:00   0:00 /usr/bin/perl ./hlstats.pl --configfile=hlstats.conf --port=27709

don't forget to open those ports for incomming traffic from game server (if its located on different ip)
rodpod is offline
Reply


Thread Tools
Display Modes

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 22:32.


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