Package: nut
Version: 2.0.1-2
Severity: critical

/etc/init.d/nut never powerdown ups due to error in script.
Wrong line:

      if [ /sbin/upsmon -K >/dev/null 2>&1 ] ; then
      
This test always fails. If simple run in command line:

# if [ /sbin/upsmon -K ] ; then echo Powerdown; fi
bash: [: /sbin/upsmon: unary operator expected

Right line:
      if /sbin/upsmon -K >/dev/null 2>&1 ; then

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.11-9-amd64-k8
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages nut depends on:
ii  adduser        3.63                      Add and remove users and groups
ii  debconf [debco 1.4.46                    Debian configuration management sy
ii  libc6          2.3.2.ds1-20.0.0.1.pure64 GNU C Library: Shared libraries an

-- debconf information:
  nut/change_system_user:
  nut/major_conf_changes:
  nut/major_upstream_changes:
  nut/remove_debian_conf:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to