Greg Melton <gmelton at gmail.com> wrote:> Eric, tried sending this one to the Unicorn list last night. I forgot to
> subscribe to the list before sending and it bounced...
Hi Greg, that''s because HTML mail is not allowed on the list.
> ---------- Forwarded message ----------
> From: Greg Melton <gmelton at gmail.com>
> To: mongrel-unicorn at rubyforge.org
> Date: Fri, 23 Oct 2009 23:11:05 -0700
> Subject: Doc Examples
> I''m in the process of adding support for Unicorn to a Rack MVC
framework
> I''ve been noodling with => http://github.com/grippy/doozer.
>
> I copied the example conf from
> http://unicorn.bogomips.org/Unicorn/Configurator.html and it''s
missing an
> ''end''.
>
> No biggie, though.
Thanks, updated and pushed out to the site.
> One thing I was wondering: is there anyway Unicorn could come with some
sort
> init.d file (similar to nginx) to make starts/stops/restarts easier?
There''s examples/init.sh in the source tree:
http://git.bogomips.org/cgit/unicorn.git/tree/examples/init.sh
It should work with nginx, too since nginx and Unicorn accept the same
sets of signals.
> Here''s the update for the DOCS file.
>
> if old_pid != server.pid
> begin
> sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU
> Process.kill(sig, File.read(old_pid).to_i)
> rescue Errno::ENOENT, Errno::ESRCH
>
> end
> end