Hi, you can find some pointers on how to debug a script here, 
http://mmonit.com/wiki/Monit/FAQ#execution Remember also that Monit usually 
needs absolute paths

-jan-henrik



On Oct 8, 2012, at 4:53 PM, Simone D. <[email protected]> wrote:

> Hi all,
> I'm using monit 5.0.3 to monitor a daemon.
> 
> check process manage_github_japns
> with pidfile /var/run/japns/japns.pid
> start program = "/usr/local/bin/start_japns"
> stop program = "/usr/local/bin/stop_japns"
> 
> If I do "sudo /usr/local/bin/start_japns" it works (the same for "sudo 
> /usr/local/bin/stop_japns"), but if I try to use monit to start it using 
> "sudo monit start manage_github_japns" I get "Execution failed".
> 
> Is there a log to see what goes wrong?
> 
> Thank you,
> Simone


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

Reply via email to