I have CentOS 5.6 on OpenVZ...
For example, this script run every 3 hours and check the number of players (maybe using cron?)... If there are no players in the server, it will execute something like killing that srcds_linux (so that srcds_run will automatically restart)...
Is there any idea how to do this? I need this because of the limited RAM, and srcds tends to eat more memory as times goes on (and it will crash if no memory available)...
I have tried to use swap, but I dont think its allowed in OpenVZ...
For example, this script run every 3 hours and check the number of players (maybe using cron?)... If there are no players in the server, it will execute something like killing that srcds_linux (so that srcds_run will automatically restart)...
Is there any idea how to do this? I need this because of the limited RAM, and srcds tends to eat more memory as times goes on (and it will crash if no memory available)...
I have tried to use swap, but I dont think its allowed in OpenVZ...