Hi,

You need to use absolute paths in monit config - ie /sbin/start I think.

Cheers

Lukasz

On 12-02-18 6:34 PM, David Montgomery wrote:
Hi,

I have a python script and  used upstart to create a daemon in ubuntu.
  sudo start pixelServer works and the pid file is in /var/run.  I am
using nginx and the server listens on port 80.  Also domain.com/pixel
works.

In monit when I monitor the process I get "execution failed".  Nginx
is monitored.  So...how do I resolve?

Thanks



check process pixelServer
    with pidfile "/var/run/pixelServer.pid"
    start program = "sudo start pixelServer"
    #stop program = "sudo stop pixelServer"
    if failed port 80 protocol HTTP
     request /pixel/
     with timeout 10 seconds
     then start

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


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

Reply via email to