Auto Killing Processes with CSF/LFD

orty

Well-Known Member
Jun 29, 2004
110
0
166
Bend, Oregon
cPanel Access Level
Root Administrator
Firist off, every bit of software at ConfigServer.com kicks all sorts of butt :)

Anyway, I've got CSF/LFD from there installed. Working great. Allowed me to discover that one of my clients has installed a script that just doesn't exit properly like it should, so I'm getting e-mails like the following:

Time: Mon Dec 11 01:30:12 2006
Account: username
Resource: Process Time
Exceeded: 1810 > 1800 (seconds)
Executable: /bin/bash
Command Line: command
PID: 31344
Killed: No
Is there any way to just have those processes killed automatically if they've been running that long, or can I put in the command line someplace and have them killed after "x" amount of minutes (as sometimes the script it question can take 30 minutes, but it usually doesn't die anyway -- I'll get these emails after the thing has been running for 3 days).

Thanks!
 

jayh38

Well-Known Member
Mar 3, 2006
1,213
0
166
CSF is fantastic...

The answer to your question is at the bottom of the CSF config.

# If this option is set then processes detected by PT_USERMEM or PT_USERTIME
# are killed
PT_USERKILL

Is that what you were wanting?
 

orty

Well-Known Member
Jun 29, 2004
110
0
166
Bend, Oregon
cPanel Access Level
Root Administrator
CSF is fantastic...

The answer to your question is at the bottom of the CSF config.

# If this option is set then processes detected by PT_USERMEM or PT_USERTIME
# are killed
PT_USERKILL

Is that what you were wanting?

It is -- I knew it was easy. Sorry ...

Thanks!