Raised This Month: $32 Target: $400
 8% 

SRCDS Process Watchdog (linux)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 08-12-2019 , 13:45   SRCDS Process Watchdog (linux)
Reply With Quote #1

Hi,

does anybody have a script to watch the process and restart it when crashed?

Previously I tried to make it on systemd basis, but it behaves strangely.
(I'm using linux-gsm)

Thanks.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 08-12-2019 , 13:52   Re: SRCDS Process Watchdog (linux)
Reply With Quote #2

I installed 6 servers over the weekend that utilize LGSM and have each cronjob for the user setup as the following:
Code:
# CSGO 27015
0 5 * * *  /home/csgoserver_27015/csgoserver restart > /dev/null 2>&1
*/5 * * * *  /home/csgoserver_27015/csgoserver monitor > /dev/null 2>&1
*/10 * * * *  /home/csgoserver_27015/csgoserver update > /dev/null 2>&1
  1. What is acting strangely about it?
  2. You've setup the cronjob to monitor the server correct? LINK
  3. Are you using the latest function versions?
Maxximou5 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 08-12-2019 , 14:03   Re: SRCDS Process Watchdog (linux)
Reply With Quote #3

I didn't know about "monitor" alias, thanks!

1) It didn't see csgoserver's child process (srcds) and service tried to restart infinitely.
I will show the code later if it make sense at the moment.
2) thanks
3) yes
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 08-12-2019 , 15:11   Re: SRCDS Process Watchdog (linux)
Reply With Quote #4

Check the log files to find out why the server keep restarting.

Last edited by TomL.; 08-12-2019 at 15:12.
TomL. 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 05:21.


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