Page 1 of 1

kill process of a single particular file

Posted: 02 Nov 2014, 17:54
by jimlongo
Hi, I have a lot of Wordpress sites.
One of those attracts a lot of comment spam, which I can deal with okay.
What happens though is that the commenters tie up resources - often I get a notice like the following

Resource: Virtual Memory Size
Exceeded: 300 > 300 (MB)
Executable: /usr/bin/php
Command Line: /usr/bin/php /home/thedomain/public_html/wp-comments-post.php
PID: 1193 (Parent PID:32606)
Killed: No

I have PT_USERKILL=0 as per the recommendations

Is there a way that I can set CSF to kill that process only when it invokes that particular file and no others?

Thanks.

Re: kill process of a single particular file

Posted: 02 Nov 2014, 22:22
by ForumAdmin
No, there's no such feature. There's no granularity, it applies equally to any non-root process that exceeds the trigger level, unless the user is ignored.