You need to use absolute paths in monit config - ie /sbin/start I think.
On 12-02-18 6:34 PM, David Montgomery wrote:
> 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
> In monit when I monitor the process I get "execution failed". Nginx
> is monitored. So...how do I resolve?
> 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: