[Mongrel] Graceful stop in, timeouts out (for now)
luislavena at gmail.com
Tue Feb 21 09:30:12 EST 2006
Yep, thats what I needed :-)
What do you think about this command line?
mongrel_rails_service install --name=my_rails --display='My Mongrel
powered Rails Service' --rails_root=d:/My/Rails/App
--rails_root=current directory, anyway validated checking existance of
app, config, db, log, public
Later, the StartCommand need just:
mongrel_rails_service start --name=my_rails
wanted to look a way to avoid --name requirement and just pass "my_rails"
The command with get the display name from windows and show it when
starting or stopping, a la "net start/stop" functionality.
On 2/21/06, Zed Shaw <zedshaw at zedshaw.com> wrote:
> Yeah, win32 means any windows system (XP, 2000, etc.). I'll play with it
> some more.
> What I do is I just run the commands directly in the source with:
> ruby -Ilib bin/mongrel_rails start
> ruby -Ilib examples/simpletest.rb localhost 3000 doc/rdoc
> Is that what you needed?
> On 2/21/06 8:39 AM, "Luis Lavena" <luislavena at gmail.com> wrote:
> > OT:
> > btw, where you put mongrel on ruby (or reference it) to have in
> > verison control (in your working copy) and allow you test without
> > installing it as gem?
> > Luis
> > On 2/21/06, Luis Lavena <luislavena at gmail.com> wrote:
> >> By "win32" you mean "Windows XP" or "Windows 2000"?
> >> I been using examples/simpletest.rb to try your modifications (the
> >> graceful shutdown and the Interrupt/trap catcher)
> >> What didn't work was the trap catcher, actually it requires you
> >> generate a new "hit" (or is named request?) after hitting ctrl-c for
> >> the HttpServer actually raise the Interrupt. No page get served before
> >> stop, just the incoming connection think that allow raising the
> >> exception.
> >> With Ctrl-Pause it break/stop execution, but the graful shutdown part
> >> never get raised.
> >> Will work today in the rails part.
> >> Later,
> >> Luis
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
More information about the Mongrel-users