Server Help

Non-Subspace Related Coding - UNIX script

CypherJF - Thu Jan 31, 2008 9:16 pm
Post subject: UNIX script
Does anyone know the best way of having CentOS parse the current process list for a specific process name and determine if the CPU usage has been above a specific threshold for X amount of time? If it does, kill it and re-execute the process?

Thoughts would be appreciated.
Dr Brain - Fri Feb 01, 2008 8:33 am
Post subject:
I seem to recall an /etc/limits or limit.conf that does that as part of the OS. You can set various thresholds and it'll kill processes if they exceed them.

I had to do that to prevent my friend from hacking in and fork bombing to crash my server. You'd be surprised how much better your security gets when you've got someone telling you how they exploited it.
phong - Sat Feb 16, 2008 7:57 pm
Post subject:
/etc/security/limits.conf
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group