monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Trying to run ferret without success


From: Bill Kocik
Subject: Re: [monit] Trying to run ferret without success
Date: Sat, 11 Apr 2009 15:26:20 -0400

On Sat, Apr 11, 2009 at 3:10 PM, Martin Pala <address@hidden> wrote:

> Please try the bash trick ...

I did - that's how I was able to report back that it didn't work. :)

> monit also strips the environment when
> executing script - see: http://www.mmonit.com/wiki/Monit/FAQ#execution

There's the answer. It turns out the limited environment means that
the ferret_server script couldn't find the ruby executable. This
works:

start program = "/bin/bash -c 'export PATH=/usr/local/bin:$PATH;cd
/var/www/tm/current && script/ferret_server -e production start'" as
uid tm and gid tm

I wish I'd had some error message saying "env: ruby - no such file or
directory" or something along those lines about 3 hours ago. Idunno
what's been swallowing it, or what right place I'm not looking in.

Thanks for your help.

-- 
Bill Kocik

http://bkocik.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]