1 --- logcheck-1.2.47.orig/src/logcheck 2006-07-06 10:16:42.000000000 +0000
2 +++ logcheck-1.2.47/src/logcheck 2006-10-08 22:30:26.000000000 +0000
4 STATEDIR="/var/lib/logcheck"
5 LOGFILES_LIST="/etc/logcheck/logcheck.logfiles"
6 LOGFILE_FALLBACK="/var/log/syslog"
7 -LOGTAIL="/usr/sbin/logtail"
8 +LOGTAIL="/usr/bin/logtail"
10 SYSLOG_SUMMARY="/usr/bin/syslog-summary"
15 if [ ! -d $cleaned ]; then
17 + install -d $cleaned \
18 || error "Could not make dir $cleaned for cleaned rulefiles."
20 - for rulefile in $(run-parts --list $dir); do
21 + for rulefile in $(run-parts -u $dir); do
22 rulefile=$(basename $rulefile)
23 if [ -f ${dir}/${rulefile} ]; then
24 debug "cleanrules: ${dir}/${rulefile}"
27 debug "Trying to get lockfile: $LOCKFILE.lock"
28 if [ ! -d $LOCKDIR ]; then
29 - mkdir -m 0755 $LOCKDIR
30 + install -d -m 0755 $LOCKDIR
32 lockfile-create --retry 1 $LOCKFILE > /dev/null 2>&1
36 # Get the list of log files from config file
37 # Handle log rotation correctly, idea taken from Wiktor Niesiobedzki.
38 -mkdir $TMPDIR/logoutput \
39 +install -d $TMPDIR/logoutput \
40 || error "Could not mkdir for log files"
41 if [ ! $LOGFILE ] && [ -r $LOGFILES_LIST ]; then
42 for file in $(egrep --text -v "(^#|^[[:space:]]*$)" $LOGFILES_LIST); do