monit-general
[Top][All Lists]
Advanced

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

Re: How to check for a path in a url and restart runit if fails


From: Jan-Henrik Haukeland
Subject: Re: How to check for a path in a url and restart runit if fails
Date: Thu, 12 Apr 2012 11:54:38 +0200

On Apr 12, 2012, at 11:44 AM, David Montgomery wrote:

>    start program = "/bin/sh /home/ubuntu/test.sh"

this should probably be 
 start program = "/home/ubuntu/test.sh"

>    then exec "sh /home/ubuntu/test.sh"

Again, you should remove the 'sh' prefix and just use: 
 then exec "/home/ubuntu/test.sh"

Take a look at the wiki http://mmonit.com/wiki/Monit/FAQ#execution There are 
pointers for using exec and debugging. 


reply via email to

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