Package: qcontrol
Version: 0.4.2-7+wheezy1
Severity: important

The qcontrol init script in 
/usr/share/initramfs-tools/scripts/init-bottom/qcontrol
contains a command line to be executed on QNAP deveices in order to disable 
their
builtin watchdog and prevent them from rebooting after 5 minutes of runtime.

This line is:

/sbin/qcontrol --direct watchdog off || true

Executing this line interactively returns a "Command not found" error message:

root@debian:~# /usr/sbin/qcontrol --direct watchdog off
Command not found

root@debian:~#

due to an apparently inappropriate parameter '--direct', which when left out
does not report an error:

root@debian:~# /usr/sbin/qcontrol  watchdog off
root@debian:~#

The qcontrol call is used in the initrd to prevent the device from rebooting
periodically. With the failed call these reboots happen every five minutes,
which is especially tooo short, if the file system check is run. In that case
the reboot happens repeatedlÃy during the fs check, which has a very high risk 
of 
corrupting data.

Since the --direct option is not mentioned in the qcontrol manpage, I conclude
that it is an invalid option and should not be used. Hence I'd suggest this fix
to be applied to the qcontrol init script. I did not yet try this fix, since my
qnap device is geographically distand from my personal location and I'd have
some trouble getting it operational again, if a reboot fails.

Meanwhile I am using the workaround "echo -n g >/dev/ttyS1" to disable the 
watchdog.

--- /usr/share/initramfs-tools/scripts/init-bottom/qcontrol.orig        
2013-06-10 13:45:38.000000000 +0200
+++ /usr/share/initramfs-tools/scripts/init-bottom/qcontrol     2013-06-10 
13:45:58.000000000 +0200
@@ -30,6 +30,6 @@
     exit 0
 fi
 
-/sbin/qcontrol --direct watchdog off || true
+/sbin/qcontrol watchdog off || true
 
 exit 0

-- System Information:
Debian Release: 6.0.7
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.32-5-kirkwood
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages qcontrol depends on:
ii  libc6                         2.11.3-4   Embedded GNU C Library: Shared lib
ii  liblua5.1-0                   5.1.4-5    Simple, extensible, embeddable pro
ii  udev                          164-3      /dev/ and hotplug management daemo

qcontrol recommends no packages.

qcontrol suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to