[Top][All Lists]

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

Re: [monit] Trying to run ferret without success

From: Martin Pala
Subject: Re: [monit] Trying to run ferret without success
Date: Sat, 11 Apr 2009 21:10:47 +0200
User-agent: Thunderbird (X11/20090318)

Bill Kocik wrote:
On Sat, Apr 11, 2009 at 2:45 PM, Bill Kocik <address@hidden> wrote:

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

Sorry for the extra email. I meant to mention that this stuff works on
the command line, just not in monit. For example:

address@hidden /bin/su -c 'cd /var/www/tm/current/ &&
script/ferret_server -e production start' tm
starting ferret server...
address@hidden ps -ef | grep ferret
tm        1574     1  0 11:46 ?        00:00:00 ruby
script/ferret_server -e production start

I can't figure out what to put here that monit will understand.

Please try the bash trick ... monit also strips the environment when executing script - see:


reply via email to

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