[Backgroundrb-devel] backgroundrb.ppid

Jodi Showers jodi at nnovation.ca
Tue Jul 10 14:48:11 EDT 2007


Howdy,

I'm trying to use monit with backgroundrb,

but it seems that backgroundrb.ppid isn't holding the id of the  
backgroundrb task.

  jodi at soup/var/www/the-soup/current $ cat log/backgroundrb.ppid
23182
jodi at soup/var/www/the-soup/current $ ps -efl
1 S deploy   23184     1  0  75   0 - 27056 stext  11:27 ?         
00:00:04 backgroundrb
1 S deploy   23186 23184  0  76   0 - 14444 -      11:27 ?         
00:00:00 backgroundrb_logger
1 S deploy   23187 23184  0  76   0 - 14768 -      11:27 ?         
00:00:00 backgroundrb_results
0 R jodi     23799 23755  0  76   0 -   676 -      14:06 pts/0     
00:00:00 grep backgroundrb


Does this make sense?

Since I'm starting backgroundrb with capistrano, the only thing I can  
think of is that it's the pid of the starting process?

Short of the above, my current work around is to `touch` a ping file  
during worker execution, restarting backgroundrb if the ping file is  
too old.

Cheers,
Jodi
General Partner
The nNovation Group inc.
www.nnovation.ca/blog




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070710/603d5d92/attachment.html 


More information about the Backgroundrb-devel mailing list