From 53b507e006737667a7b2f16288e88e0d0fccf78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 24 Feb 2017 21:48:27 +0100 Subject: refresh patches --- debian/patches/0700-init.patch | 8 ++++---- debian/patches/0705-crontab.patch | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'debian/patches') diff --git a/debian/patches/0700-init.patch b/debian/patches/0700-init.patch index d0701e4..be24a2a 100644 --- a/debian/patches/0700-init.patch +++ b/debian/patches/0700-init.patch @@ -85,16 +85,16 @@ Index: trunk/scripts/ipmiutil_wdt # Short-Description: ipmiutil watchdog timer init script # Description: Init script to enable and reset ipmiutil watchdog timer via cron ### END INIT INFO -@@ -33,6 +33,8 @@ wdtlog=/var/log/$name - #tmpcron=/tmp/wdtcron.$$ - # tmpcron2=/tmp/wdtcron2.$$ +@@ -28,6 +28,8 @@ LOCKFILE=/var/lock/subsys/$name + wdtlog=/var/log/$name + wdtsec=150 # default 150 seconds for watchdog timeout (2*60 + 30) +. /lib/lsb/init-functions + start() { echo -n "Starting $prog: " echo -@@ -137,10 +139,13 @@ case "$1" in +@@ -123,10 +125,13 @@ case "$1" in restart) restart ;; diff --git a/debian/patches/0705-crontab.patch b/debian/patches/0705-crontab.patch index 375ddba..f19523e 100644 --- a/debian/patches/0705-crontab.patch +++ b/debian/patches/0705-crontab.patch @@ -8,13 +8,13 @@ Index: trunk/scripts/ipmiutil_wdt =================================================================== --- trunk.orig/scripts/ipmiutil_wdt +++ trunk/scripts/ipmiutil_wdt -@@ -63,7 +63,8 @@ start() { - # RETVAL=$? - # restart the watchdog every 60 seconds via /etc/cron.d - cat - <<%%% >$wdtcron +@@ -51,7 +51,8 @@ start() { + if [ $RETVAL -eq 0 ]; then + # restart the watchdog every 60 seconds via /etc/cron.d + cat - <<%%% >$wdtcron -* * * * * root $prog -r >/dev/null +MAILTO='' +* * * * * root $prog -r > $prog.lastrun 2&>1 %%% # make crond re-read the /etc/cron.d - $crond_sh restart >>$wdtlog + $restart_cron >>$wdtlog -- cgit v1.2.3