Evan Weaver on 22 Jan 2008 06:53:34 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Monit + Mongrel

  • From: "Evan Weaver" <evan@cloudbur.st>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] Monit + Mongrel
  • Date: Tue, 22 Jan 2008 09:53:01 -0500
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=MGudKWkBDoJ0oTatpuFDx9XGDHQKEfqNBzFITRH2a7k=; b=r1S/FD8BNRiouV2Jb619D7z2C1Z752izlIHHnj9FVVq0nlZCBIYCY94cLySmJ8i0FzTR8uBUqmX/gUAEuwpMVx2a5TAaF2NbAgMbekTaCTbBEnwBJMZCG0ZUMNsdPsJLnx/OFXzB+BQWWariMouLwEx0BBr6Vt5w7+uHyNFFwNU=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

You can do whatever you want in a monit environment via 'env'. For
example, one of my monit start commands looks like:

  start program = "/usr/bin/sudo -u app /usr/bin/env
LD_LIBRARY_PATH=/opt/aspell/lib:/opt/freeimage/lib:/opt/mysql5/devel-default/lib/mysql
PATH=/opt/ruby/default/bin:/opt/sphinx/default/bin:/opt/mysql5/client-default-5.0/bin:/opt/mysql5/devel-default/bin:/opt/aspell/bin:/bin:/usr/bin
INLINEDIR=/opt/rails/chow/production/current/tmp/inline mongrel_rails
cluster::start -C
/opt/rails/chow/production/current/config/mongrel_cluster.production.yml
--clean --only 10220"

Evan

On Jan 22, 2008 9:47 AM, Andrew Libby <alibby@tangeis.com> wrote:
>
>
> Randy Schmidt wrote:
> >> You probably want to be using mongrel::cluster with the --clean flag.
> >> Mongrel_rails won't restart daemons that were hard killed by Monit and
> >> didn't remove their PID file.
> >>
> >
> > I started by using /usr/local/bin/mongrel_rails cluster:: but that
> > calls mongrel_rails (without an absolute path) which monit can't find.
> > Monit has a very slim PATH setup and you can't add to it. I guess I
> > could add a symlink from a place in the Monit PATH but I have a hard
> > time believing that will fix the problem since my start and stop
> > programs work fine from the command line.
> >
> >
> Could you make sure mongrel_rails is in the path before making your
> call?  The symlink would
> also work, me thinks.
>
>
>
>
> Andy
>
> _______________________________________________
> To unsubscribe or change your settings, visit:
> http://lists.phillyonrails.org/mailman/listinfo/talk
>



-- 
Evan Weaver
Cloudburst, LLC
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk