Page 1 of 1

lfd Process match for Ruby on Rails

Posted: 26 Mar 2008, 01:24
by paulkoan
Hello,

Ruby on Rails under cpanel uses the mongrel server, and so is a long running process that needs to be ignored by lfd.

The process is:

/usr/bin/ruby /usr/bin/mongrel_rails start -p xxx -d -e production -P log/mongrel.pid

I don't want to ignore all long running ruby processes, so I'd like to be able to include the parameter in the csf.pignore match:

Code: Select all

pexe:/usr/bin/ruby /usr/bin/mongrel_rails
This doesn't work, but before I go rooting through the code, does anyone know whether lfd looks past the running process executable to even be able to match on parameters?

Thanks,

Paul Murphy

Posted: 27 Mar 2008, 09:15
by chirpy
That's because you haven't used a full regex. The following should work:

pexe:/usr/bin/ruby /usr/bin/mongrel_rails .*

Posted: 27 Mar 2008, 13:40
by paulkoan
Thanks chirpy..

This doesn't work, which I guess brings me back to the question - does anyone know whether lfd looks at a process' parameters when doing a match?

Re: lfd Process match for Ruby on Rails

Posted: 18 Oct 2013, 01:19
by gbh
Does anyone have any further thoughts on this at all?

I'm trying to make an exception for this:


Executable:

/usr/bin/ruby-bin (deleted)

Command Line (often faked in exploits):

/usr/bin/ruby -I /home/postergr/ruby /usr/bin/mongrel_rails start -p 12001 -d -e development -P log/mongrel.pid