Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Feature Request : Implement functionality of process title plugin for mongrels in Thin
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Glenn Rempe  
View profile  
 More options Mar 19 2008, 11:00 pm
From: Glenn Rempe <glenn.re...@gmail.com>
Date: Wed, 19 Mar 2008 20:00:41 -0700 (PDT)
Local: Wed, Mar 19 2008 11:00 pm
Subject: Feature Request : Implement functionality of process title plugin for mongrels in Thin
Something like this would be great for Thin if it were built in (and
of course worked equally well on OS X, Solaris, Linux).  I am using
Solaris myself for hosting so you can implement that one first :-)

http://purefiction.net/mongrel_proctitle/

Cheers.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
macournoyer  
View profile  
 More options Mar 19 2008, 11:32 pm
From: macournoyer <macourno...@gmail.com>
Date: Wed, 19 Mar 2008 20:32:47 -0700 (PDT)
Local: Wed, Mar 19 2008 11:32 pm
Subject: Re: Feature Request : Implement functionality of process title plugin for mongrels in Thin
Should fairly easy w/ a Rack middleware:

class ProcTitle
  def initialize(app)
    @app = app
  end

  def call(env)
    $0 = "thin #{env['HTTP_HOST']} handling #{env['HTTP_METHOD']}
#{env['HTTP_REQUEST_URI']}"
    @app.call(env)
  end
end

use ProcTitle
run Rack::Adapter::Rails.new(:root => '/var/www/rails_app')

On Mar 19, 11:00 pm, Glenn Rempe <glenn.re...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glenn Rempe  
View profile  
 More options Mar 20 2008, 7:40 pm
From: Glenn Rempe <glenn.re...@gmail.com>
Date: Thu, 20 Mar 2008 16:40:44 -0700 (PDT)
Local: Thurs, Mar 20 2008 7:40 pm
Subject: Re: Feature Request : Implement functionality of process title plugin for mongrels in Thin
Thanks for the sample code.  I tried it out this morning and setup a
little Git repo for it on GitHub.

http://github.com/grempe/thin-proctitle/tree/master

I am having a couple of issues with it:

- This does not currently work on Solaris (well it works serving
pages, but the process title does not change).  How can we change the
process title on Solaris?
    http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2003-09/0370.html
- The display of the number of requests processed and queued does not
currently work.  Shows '-' for now. Help?
- Can the process title change itself back to 'idle' when not handling
a current request?
- can this be converted to a Rails plugin so it 'just works'?

Maybe you or others in the group can take a look and help out?  I
would love to see some patches from some folks with more Rack/Thin
expertise to get it working better.

Thanks,

Glenn

On Mar 19, 8:32 pm, macournoyer <macourno...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google