syslog: introduce /var/log/daemon
authorConstantine A. Murenin <cnst+dfly@bugmail.mojo.ru>
Tue, 2 Feb 2010 23:36:27 +0000 (18:36 -0500)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Feb 2010 03:22:06 +0000 (19:22 -0800)
  * 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
etc/newsyslog.conf
etc/syslog.conf

index 5305865..ef3e258 100644 (file)
@@ -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 \
index d25d67e..790f4cb 100644 (file)
@@ -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
index 38d9e78..86c7a69 100644 (file)
@@ -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