monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Apps start from monit - problem


From: Martin Pala
Subject: Re: [monit] Apps start from monit - problem
Date: Mon, 21 Jan 2008 21:13:29 -0800

You can create script and set the environment in it.

Martin


On Jan 21, 2008, at 9:10 PM, Blasfamous Tshirts wrote:

I have imported the whole env to run the app in this way:

start program = "/usr/bin/env PATH=/usr/local/bin/:$PATH mongrel_rails start -C /home/bliss/test4/config/mongrel_9000.yml"

Is there any other way to load the env?



On 1/21/08, Martin Pala <address@hidden> wrote: Monit sets sandbox environment consisting of:

PATH=/bin:/usr/bin:/sbin:/usr/sbin

and several  MONIT_* variables which inform the program being
executed about the event and allow to customize the according to
context.

It is possible that your command line environment contains extra
environment variables which are required by mongrel configuration,
which are not set when starting via monit. You can add these
variables to the startup script.


Martin



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

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