The custom action in "if <x> restarts within <y> cycles" is supported since 
Monit 5.1 - it seems that you have older Monit version

Regards,
Martin


On Aug 26, 2010, at 9:43 PM, Josh Sharpe wrote:

> check process order_approval with pidfile 
> /rails/veloracing/current/tmp/pids/order_approval.pid
>    if 2 restarts within 2 cycles then exec "ls"
> 
> 
> $ sudo monit
> /etc/monit/conf.d/app.conf:2: Error: syntax error 'exec "'
> 
> Why?

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

Reply via email to