From: Florian Fainelli Date: Sun, 24 Oct 2010 20:44:51 +0000 (+0000) Subject: update monit from 5.0.3 to 5.1.1 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=148911055a1b2955ef22108e6346c6fb17eb20c3;p=openwrt%2Fsvn-archive%2Fpackages.git update monit from 5.0.3 to 5.1.1 I wanted to configure monit with a rule that checks a network connection, restarts the connection if it fails, and eventually reboots the entire router if the connection restarts don't work. I wrote this in my rules: start "/sbin/ifup inet" stop "/sbin/ifdown inet" if failed icmp type echo count 3 timeout 10 seconds then restart if 3 restarts within 5 cycles then exec "/sbin/reboot" When I tested these rules I found that monit 5.0.3 does not support the phrase: ... then exec "/sbin/reboot" But this phrase is supported by monit 5.1.1. I patched the Makefile to upgrade to 5.1.1, rebuilt and reflashed, and now my monit rule runs as intended. So I have tested this on a grand total of one machine (Linksys WAG354G, TI AR7). Is this enough to justify upgrading monit for everyone? My changes to package/feeds/packages/monit/Makefile are below. They were generated with svn diff. Signed-off-by: Jon Hirst SVN-Revision: 23624 --- diff --git a/admin/monit/Makefile b/admin/monit/Makefile index c47086998..271ad3a1b 100644 --- a/admin/monit/Makefile +++ b/admin/monit/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=monit -PKG_VERSION:=5.0.3 +PKG_VERSION:=5.1.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://mmonit.com/monit/dist/ -PKG_MD5SUM:=dae7859ec10551fc941daeae60dee9d3 +PKG_MD5SUM:=4bbd3845ae1cbab13ec211824e0486dc include $(INCLUDE_DIR)/package.mk