SRCDS Steam group


Kill srcds if over 99% CPU?
#1
Hey All,

I've got some stupid admins on my server and as much as I would love to remove them I can't so...

I'm currently using the watchdog script
Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

but if people screw around with the grav srcds.exe will go up to 99% CPU usage. Is it possible to add something into the .bat to kill srcds if it gets over 99% CPU usage?

Also, on some crappy maps I get a vbscript error (or something similar) and the server restarts, but I need to press enter to get rid of the dialoge box and put the server back up. Can I add something to the .bat for that too?

Thanks for any help, I'm not great with Windows systems.
Reply
#2
I used to have Serverdoc, but I think it was a trial.. it restarts the server when dialogs come up.

also why can't you remove admins???? I don't get that.
another one for you: Is it only the gravity settings that make it go amok?
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#3
Drocona Wrote:I used to have Serverdoc, but I think it was a trial.. it restarts the server when dialogs come up.

also why can't you remove admins???? I don't get that.
another one for you: Is it only the gravity settings that make it go amok?

Thanks for the fast reply.

I'll have a look at ServerDoc, thanks.
EDIT - I took a quick look at ServerDoc, looks kinda like what I want, but too complicated for me when I'm in a sleep-deprived status. Will have a look later if noone suggests something else.

I can remove admins but would prefer not to. And yes, at the moment only gravity settings make it go up to 99% CPU.
Reply
#4
you can add this to your server.cfg note that you wnt be able to change gravity unless your remove it:
alias "sv_gravity" "say Gravity change disabled."

when you rcon or type it yourself in console the server will not change the gravity and will say "Console: Gravity change disabled." ingame.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#5
Hmm, Thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)