We have a similar problem on one of our gameservers and we have solved it by adding 2 crontab jobs

as root we do a reboot
58 4 * * 5 /sbin/shutdown -r now >> /dev/null 2>&1

as the user who runs the gameserver
9 5 * * 5 cd /home/gameadmin/cstrike/orangebox/ && screen -A -m -d -S cstrike ./cs_start

cs_start is a smal start script

Good Luck

Peter


Mike Johansen skrev 2011-12-10 17:22:
The script is not the problem. Sometimes it starts the server without any
error, and no, it kills it>  update>  start.
The logs does not show anything useful either, no errors in anything, just a
black console screen in the server.

No addons installed, only things I have in my cfg is the hostname and rates.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of ics
Sent: 10. desember 2011 14:24
To: [email protected]; Half-Life dedicated Linux server mailing list
Subject: Re: [hlds_linux] Server locking up with 100% cpu usage

Are you sure that your script does not start one server over and over and
over (as in, starting multiple instances) untill the machine is stuck, out
of memory and cpu? If one port is occupied, server just picks another.

-ics

10.12.2011 14:34, Svensk Ljud&  Ljus Produktion kirjoitti:
I belive the problem is that its not killing the gameserver and when
the script is starting the ganneserver the port is occupied and so on ..

Look througe the logs /var/logs and the answer will be found :)

Good luck !

Peter

Mike Johansen skrev 2011-12-10 12:47:
Hi,



I am using a script to automatically reboot and update my servers @
6.00 GMT
+1. The script is working, and it is updating the servers, but when
+it
starts them again they seem to lock up and use 100% of CPU.

I have to manually contact the dc and make them reboot  the physical
machine because SSH or terminal does not work.

The startup CMD I am using: ./srcds_run -game tf -port 27015
+maxplayers 32
+map cp_orange_x3 -autoupdate



Now it does work sometimes, but sometimes it just hangs and use the cpu.



The system I am running it on is a Debian Squeeze 6.0.3, 3.0.1 custom
kernel.



Any solution?





_______________________________________________
To unsubscribe, edit your list preferences, or view the list
archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux




_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

Reply via email to