]> git.pld-linux.org Git - packages/syslog-ng.git/commitdiff
- cron daemons log through syslog
authorBartek Szady <bszx@bszx.eu>
Tue, 6 Oct 2015 10:49:17 +0000 (12:49 +0200)
committerBartek Szady <bszx@bszx.eu>
Tue, 6 Oct 2015 10:56:15 +0000 (12:56 +0200)
- syslog packages own cron log file and rotate it

syslog-ng.conf
syslog-ng.logrotate
syslog-ng.spec

index 5936c1657da1a2b46f68f1193f8e8a26df4a475b..512504195cd89800fd329464a443b2bfe4a860a2 100644 (file)
@@ -43,7 +43,7 @@ destination d_authlog { file("/var/log/secure"); };
 destination d_mail     { file("/var/log/maillog"); };
 destination d_uucp     { file("/var/log/spooler"); };
 destination d_debug    { file("/var/log/debug"); };
-destination d_cron     { file("/var/log/cron" owner(root) group(crontab) perm(0660)); };
+destination d_cron     { file("/var/log/cron"); };
 destination d_syslog   { file("/var/log/syslog"); };
 destination d_daemon   { file("/var/log/daemon"); };
 destination d_lpr              { file("/var/log/lpr"); };
index 97b8e53e6bf5c3cbebff4036a84ba7ea98e958c9..fcf6144c9a7fc886b2c7a087b14c79cf81e15ff4 100644 (file)
@@ -1,3 +1,4 @@
+/var/log/cron
 /var/log/daemon
 /var/log/debug
 /var/log/iptables
index faa11ac95e2c552c1eadbc0760d6bf63e576d100..43477ccd7dd26ae7ccb9bd10fe21b699500a4cdd 100644 (file)
@@ -33,7 +33,7 @@ Summary(pl.UTF-8):    Syslog-ng - systemowy demon logujący nowej generacji
 Summary(pt_BR.UTF-8):  Daemon de log nova geração
 Name:          syslog-ng
 Version:       3.6.4
-Release:       1
+Release:       2
 License:       GPL v2+ with OpenSSL exception
 Group:         Daemons
 Source0:       https://my.balabit.com/downloads/syslog-ng/open-source-edition/%{version}/source/%{name}_%{version}.tar.gz
@@ -392,7 +392,7 @@ ln -snf %{slibdir}/$(basename $RPM_BUILD_ROOT%{slibdir}/libsyslog-ng-%{mver}.so.
 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog-ng
 
-for n in daemon debug iptables kernel lpr maillog messages secure spooler syslog user xferlog; do
+for n in cron daemon debug iptables kernel lpr maillog messages secure spooler syslog user xferlog; do
        > $RPM_BUILD_ROOT/var/log/$n
 done
 touch $RPM_BUILD_ROOT/etc/sysconfig/%{name}
@@ -526,18 +526,19 @@ exit 0
 %{_mandir}/man5/syslog-ng.conf.5*
 %{_mandir}/man8/syslog-ng.8*
 
-%attr(640,root,root) %ghost /var/log/daemon
-%attr(640,root,root) %ghost /var/log/debug
-%attr(640,root,root) %ghost /var/log/iptables
-%attr(640,root,root) %ghost /var/log/kernel
-%attr(640,root,root) %ghost /var/log/lpr
-%attr(640,root,root) %ghost /var/log/maillog
-%attr(640,root,root) %ghost /var/log/messages
-%attr(640,root,root) %ghost /var/log/secure
-%attr(640,root,root) %ghost /var/log/spooler
-%attr(640,root,root) %ghost /var/log/syslog
-%attr(640,root,root) %ghost /var/log/user
-%attr(640,root,root) %ghost /var/log/xferlog
+%attr(640,root,logs) %ghost /var/log/cron
+%attr(640,root,logs) %ghost /var/log/daemon
+%attr(640,root,logs) %ghost /var/log/debug
+%attr(640,root,logs) %ghost /var/log/iptables
+%attr(640,root,logs) %ghost /var/log/kernel
+%attr(640,root,logs) %ghost /var/log/lpr
+%attr(640,root,logs) %ghost /var/log/maillog
+%attr(640,root,logs) %ghost /var/log/messages
+%attr(640,root,logs) %ghost /var/log/secure
+%attr(640,root,logs) %ghost /var/log/spooler
+%attr(640,root,logs) %ghost /var/log/syslog
+%attr(640,root,logs) %ghost /var/log/user
+%attr(640,root,logs) %ghost /var/log/xferlog
 
 %if %{with mongodb}
 %files module-afmongodb
This page took 0.141088 seconds and 4 git commands to generate.