[Logcheck-devel] Bug#344553: logcheck: Fails silently to read config file

Markus Peuhkuri puhuri at iki.fi
Fri Dec 23 18:21:53 UTC 2005


Package: logcheck
Version: 1.2.42
Severity: minor
Tags: patch

Logcheck does not report any error if the config file is not readable
or does not exists.  This may easily happen, as logcheck is run as
logcheck user and while one is testing a new configuration on live
system with running configuration intact.

Following fragment may help:

 # Now source the config file - before things that should not be changed
 if [ -r $CONFFILE ]; then
-       . $CONFFILE
+       . $CONFFILE
+else
+    error "Config file $CONFFILE not exists or readable"
 fi


-- System Information:
Debian Release: 3.1
  APT prefers stable
  APT policy: (900, 'stable'), (400, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-rc4
Locale: LANG=fi_FI at euro, LC_CTYPE=fi_FI at euro (charmap=ISO-8859-15)

Versions of packages logcheck depends on:
ii  adduser          3.80                    Add and remove users and groups
ii  cron             3.0pl1-92               management of regular
background p
ii  debconf [debconf 1.4.62                  Debian configuration
management sy
ii  debianutils      2.15.1                  Miscellaneous utilities
specific t
ii  grep             2.5.1.ds2-4             GNU grep, egrep and fgrep
ii  lockfile-progs   0.1.10                  Programs for locking and
unlocking
ii  logcheck-databas 1.2.42                  database of system log
rules for t
ii  logtail          1.2.42                  Print log file lines that
have not
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii  sendmail-bin [ma 8.13.4-3                powerful, efficient, and
scalable
ii  sysklogd [system 1.4.1-17                System Logging Daemon

logcheck recommends no packages.

-- debconf information excluded






More information about the Logcheck-devel mailing list