default lock file to /var/lib/logcheck/logcheck

Luis Mondesi lemsx1 at gmail.com
Wed Feb 22 15:18:14 UTC 2006


Package: logcheck
Version: 1.2.42
Severity: minor

The default logcheck lock file is /var/lock/logcheck/logcheck (hardcoded
in /usr/sbin/logcheck).
Since /var/lock gets cleaned on every boot, and logcheck runs as the user "logcheck", on everyboot logcheck complaints about not being able to create the lock file.
So, the easiest way to solve this issue is to default logcheck.lock to
/var/lib/logcheck/logcheck like:

edit /etc/logcheck/logcheck.conf (or provide a debconf option):
LOCKFILE="/var/lib/logcheck/logcheck"

This directory is always present and it has the proper permissions.

-- System Information:
Debian Release: testing/unstable
  APT prefers dapper-updates
  APT policy: (500, 'dapper-updates'), (500, 'dapper-security'), (500, 'dapper'), (500, 'breezy-backports')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.3-desktop-2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)

Versions of packages logcheck depends on:
ii  adduser   3.80                           Add and remove users and groups
ii  cron      3.0pl1-92ubuntu1               management of regular background p
ii  debconf [ 1.4.70ubuntu1                  Debian configuration management sy
ii  debianuti 2.15.2                         Miscellaneous utilities specific t
ii  grep      2.5.1.ds2-4                    GNU grep, egrep and fgrep
ii  lockfile- 0.1.10                         Programs for locking and unlocking
ii  logcheck- 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-1ubuntu1 A simple mail user agent
ii  postfix [ 2.2.8-9                        A high-performance mail transport 
ii  sysklogd  1.4.1-17ubuntu4                System Logging Daemon

logcheck recommends no packages.

-- debconf information:
  logcheck/changes:
* logcheck/install-note:




More information about the ubuntu-users mailing list