[Top][All Lists]

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

Re: Execute Command by Monit Unsuccessful

From: Martin Pala
Subject: Re: Execute Command by Monit Unsuccessful
Date: Thu, 25 Sep 2014 21:31:25 +0200


you have to use full path for the "liquidsoap" command (Monit doesn't use shell 
to execute the command). You can get the path by "which liquidsoap" command 
(provided it is in your PATH).


On 25 Sep 2014, at 20:49, Jay Nicholas <address@hidden> wrote:

> Hello, all!
> I need some advice and I'm hoping someone can assist.
> I have a process that runs on my server that I would like to have monitored 
> by monit. The only thing that doesn't work is the following lines in the 
> config file:
>   check process stream matching "spa.liq"
>   if does not exist then exec "liquidsoap /home/me/scripts/spa.liq &" as uid 
> jay and gid jay
> It is able to find the "spa.liq" process because I can see it from the monit 
> web page. However, if I kill the process to test that it starts up it doesn't 
> work. The log files show that it executes the command but it never runs so it 
> just keeps trying.
> In addition, this process cannot run as root so I added the "as uid jay and 
> gid jay" so that it runs under my username.
> There must be something wrong with this configuration but I can't figure out 
> what it is.
> Thanks,
> Jay
> --
> To unsubscribe:

reply via email to

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