monit-general
[Top][All Lists]
Advanced

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

Re: Can't start service and log doesn't help


From: Eric Pailleau
Subject: Re: Can't start service and log doesn't help
Date: Wed, 22 Sep 2010 09:47:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100624 Mandriva/3.0.5-0.1mdv2009.1 (2009.1) Thunderbird/3.0.5

Le 22/09/2010 09:41, Daniel Maher a écrit :
On 09/21/2010 06:35 PM, Rubén Dávila wrote:

[CDT Sep 21 10:45:24] debug : restart service
'unicorn_staging_app.com <http://unicorn_staging_app.com/>' on user
request
[CDT Sep 21 10:45:24] info : monit daemon at 5482 awakened
[CDT Sep 21 10:45:24] info : Awakened by User defined signal 1
[CDT Sep 21 10:45:24] info : 'unicorn_staging_app.com
<http://unicorn_staging_app.com/>' trying to restart
[CDT Sep 21 10:45:24] info : 'unicorn_staging_app.com
<http://unicorn_staging_app.com/>' stop: /etc/init.d/unicorn
[CDT Sep 21 10:45:26] info : 'unicorn_staging_app.com
<http://unicorn_staging_app.com/>' start: /etc/init.d/unicorn
[CDT Sep 21 10:45:56] error : 'unicorn_staging_app.com
<http://unicorn_staging_app.com/>' failed to start

I can't find the reason for this problem, although the start program
command "/etc/init.d/unicorn start /etc/unicorn/app.com.conf" starts the
service fine, please any idea for this issue?

Does "/etc/init.d/unicorn start /etc/unicorn/app.com.conf" return 0 ?


monit exec comes without any environnement variable neither path.
you have to load an environnement either by login or by sourcing a file.

try  " su - user '/etc/init.d/unicorn start /etc/unicorn/app.com.conf' "
where user is usual user that run the program.
Even it is root, you need this to load the root environnement.
Regards.



reply via email to

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