keeping mongrel running on *nix

0 views
Skip to first unread message

Josh

unread,
Sep 17, 2006, 9:50:41 AM9/17/06
to Ruby on Rails: Talk
i found a great recipe on creating a launchd item for mongrel so that
all of the mongrel servers can be start automatically when the computer
is rebooted.

http://blog.neontology.com/articles/2006/07/08/mongrel-with-launchd-and-lighttpd

what would be the equivalent of this on my production server?
currently, after every reboot, i am having to ssh into the computer and
run mongrel_rails start.

Isak Hansen

unread,
Sep 17, 2006, 1:03:26 PM9/17/06
to rubyonra...@googlegroups.com

Exactly how you add/create a system service is fairly platform
dependent i think, and probably better answered elsewhere. -- In brief
you create a script for starting and stopping your tasks, then assign
that script to the proper run levels somehow.

On a production server I think you should also consider
mongrel_cluster, which makes it easier to manage several
processes/applications at once.


I pieced my vps setup together following the two articles below:
<http://www.entanke.se/blog/2006/06/26/setup-of-ruby-rails-mongrel-and-pound-on-a-vps>
<http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you>


Isak

Isak Hansen

unread,
Sep 17, 2006, 1:21:24 PM9/17/06
to rubyonra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages