monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Including "export RAILS_ENV=production" in start command


From: Alex Soto
Subject: Re: [monit] Including "export RAILS_ENV=production" in start command
Date: Tue, 26 May 2009 10:39:28 -0700

From a response just from yesterday titled 'Help getting monit to mount/unmount device':

The start program is not run in a shell, but by exec. To write the start program as a shell script you need to invoke a shell like so:

start program = "/bin/bash -c '/bin/mkdir -p /data/db ; /bin/ mount /data/db'"


Therefore, try using bash -c 'your cmd'



On May 26, 2009, at 9:28 AM, Neil Cauldwell wrote:

Hi, I'm trying to figure out how to create a start program command for which I would type the following at the command line;

cd /var/www/soindustry/current
export RAILS_ENV=production script/workling_client start

The problem is that I need Monit to start a task using the 'export RAILS_ENV=production'. Presumably the above example would also be the same as;

export RAILS_ENV=production /var/www/soindustry/current/script/ workling_client start

Thanks

Get the New Internet Explore 8 Optimised for MSN. Download Now --
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

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