From: Jamie Wilkinson <jamie@tramchase.com>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: mongrel_proctitle like support in Unicorn
Date: Tue, 22 Jun 2010 16:14:03 -0700 [thread overview]
Message-ID: <2BBAE655-2636-4B32-B854-50A8EB7CA2A1@tramchase.com> (raw)
In-Reply-To: <20100617232149.GB25862@dcvr.yhbt.net>
On Jun 17, 2010, at 4:21 PM, Eric Wong wrote:
>>> http://coderack.org/users/arya/entries/3-rack-proctitle
>>
>> FWIW this doesn't seem to work out-of-box with Unicorn. Eric, do you know
>> offhand if it's possible to use middleware to call unicorn's proc_name? I'd love
>> to be able to watch what my unicorns are doing in realtime
>
> That coderack link no longer works for me, but I see no reason why
> Rack::ProcTitle in rack-contrib wouldn't work (based on my reading of
> the code):
>
> http://github.com/rack/rack-contrib/blob/master/lib/rack/contrib/proctitle.rb
This works great . Thanks Eric.
For anyone else: I just dropped the above into lib/rack_proctitle.rb and added "use Rack::ProcTitle" in my Rails config.ru
Now me & my unicorns are like totally BFFs
-jamie
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
prev parent reply other threads:[~2010-06-22 23:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-02 21:52 mongrel_proctitle like support in Unicorn Justin Hahn
2009-12-02 22:04 ` Michael Guterl
2010-06-17 22:22 ` Jamie Wilkinson
2010-06-17 23:21 ` Eric Wong
2010-06-22 23:14 ` Jamie Wilkinson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2BBAE655-2636-4B32-B854-50A8EB7CA2A1@tramchase.com \
--to=jamie@tramchase.com \
--cc=mongrel-unicorn@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).