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 14:45:07 -0400

On Sat, Apr 11, 2009 at 2:35 PM, Martin Pala <address@hidden> wrote:
> monit doesn't execute shell for start command, so if you need to call
> shell-like commands, you need to wrap it like this:
>
>
>  start program = "/bin/bash -c 'cd /var/www/tm/current/ &&
> script/ferret_server -e production start'" as uid tm and gid tm

That's very similar to the first thing I tried. For some reason,
trying to pass "-c" with a single quoted string to su or bash or
anything else just doesn't work, and I really have no idea why -
there's no error message anywhere to clue me in. With the above, I'm
getting this:

Starting monit: 'ferret' process is not running
'ferret' trying to restart
'ferret' start: /bin/bash
'ferret' failed to start

I don't even know how to find out what's going wrong.

-- 
Bill Kocik

http://bkocik.net




reply via email to

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