Package: watchdog
Version: 5.12-1
Severity: normal
Tags: patch
When adding in /etc/default/watchdog a definition of a module that contains
a module option, like:
watchdog_module="sbc_fitpc2_wdt margin=60"
the /etc/init.d/watchdog fails to launch it correctly.
I propose the patch:
diff -u /etc/init.d/watchdog.old /etc/init.d/watchdog
--- watchdog.old 2013-08-10 22:53:26.000000000 +0200
+++ watchdog 2013-08-01 23:00:31.000000000 +0200
@@ -46,7 +46,7 @@
if [ $run_watchdog = 1 ]
then
# do we have to load a module?
- [ ${watchdog_module:-none} != "none" ] && /sbin/modprobe
$watchdog_module
+ [ "${watchdog_module:-none}" != "none" ] && /sbin/modprobe
$watchdog_module
# make sure that wd_keepalive is stopped
log_begin_msg "Stopping watchdog keepalive daemon..."
start-stop-daemon --stop --quiet --oknodo --retry $STOP_RETRY_SCHEDULE
\
-- System Information:
Debian Release: 7.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.2.46-2atom (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages watchdog depends on:
ii debconf [debconf-2.0] 1.5.49
ii libc6 2.13-38
ii lsb-base 4.1+Debian8+deb7u1
ii udev 175-7.2
watchdog recommends no packages.
watchdog suggests no packages.
-- Configuration Files:
/etc/watchdog.conf changed:
max-load-1 = 24
max-load-5 = 18
max-load-15 = 12
watchdog-device = /dev/watchdog
interval = 30
realtime = yes
priority = 1
/etc/default/watchdog changed:
run_watchdog=1
watchdog_module="sbc_fitpc2_wdt margin=60"
-- debconf information excluded
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]