From 510bc832e8aea68f8441bef9a5aa1da7b01fe5eb Mon Sep 17 00:00:00 2001 From: "Constantine A. Murenin" Date: Tue, 2 Feb 2010 18:36:27 -0500 Subject: [PATCH] syslog: introduce /var/log/daemon * The idea is taken from OpenBSD. * The immediate benefit is more informational messages from sensorsd, e.g. stuff like the total number of sensors, configuration reloads and 'OK' and 'within' status/state events. --- etc/Makefile | 2 ++ etc/newsyslog.conf | 1 + etc/syslog.conf | 1 + 3 files changed, 4 insertions(+), 0 deletions(-) diff --git a/etc/Makefile b/etc/Makefile index 5305865..ef3e258 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -320,6 +320,8 @@ distribution: ${DESTDIR}/var/log/auth.log ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ ${DESTDIR}/var/log/cron + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ + ${DESTDIR}/var/log/daemon ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/log/lpd-errs ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ diff --git a/etc/newsyslog.conf b/etc/newsyslog.conf index d25d67e..790f4cb 100644 --- a/etc/newsyslog.conf +++ b/etc/newsyslog.conf @@ -21,6 +21,7 @@ /var/log/cron 600 3 100 * Z /var/log/amd.log 644 7 100 * Z /var/log/auth.log 600 7 100 * Z +/var/log/daemon 640 5 100 * Z /var/log/lpd-errs 644 7 100 * Z /var/log/maillog 640 7 * @T00 Z /var/log/sendmail.st 640 10 * 168 B diff --git a/etc/syslog.conf b/etc/syslog.conf index 38d9e78..86c7a69 100644 --- a/etc/syslog.conf +++ b/etc/syslog.conf @@ -10,6 +10,7 @@ *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages security.* /var/log/security auth.info;authpriv.info /var/log/auth.log +daemon.info /var/log/daemon mail.info /var/log/maillog lpr.info /var/log/lpd-errs cron.* /var/log/cron -- 1.7.7.2