diff --git a/templates/rsyslog/files/rsyslog.logrotate b/templates/rsyslog/files/rsyslog.logrotate new file mode 100644 index 00000000000..6721a7d0185 --- /dev/null +++ b/templates/rsyslog/files/rsyslog.logrotate @@ -0,0 +1,8 @@ +/var/log/messages /var/log/dmesg /var/log/lastlog /var/log/secure { + missingok + sharedscripts + postrotate + kill -HUP $(cat /var/run/rsyslogd.pid 2>/dev/null) \ + 2>/dev/null || true + endscript +} diff --git a/templates/rsyslog/template b/templates/rsyslog/template index 215072f442e..6e00d0ecd46 100644 --- a/templates/rsyslog/template +++ b/templates/rsyslog/template @@ -1,6 +1,7 @@ # Template file for 'rsyslog' pkgname=rsyslog version=4.4.1 +revision=1 distfiles="http://download.rsyslog.com/$pkgname/$pkgname-$version.tar.gz" build_style=gnu_configure configure_args="--enable-gnutls" @@ -23,7 +24,9 @@ Add_dependency full zlib post_install() { - install -d ${DESTDIR}/etc/init.d + install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/logrotate.d install -m755 ${FILESDIR}/rsyslogd.rc ${DESTDIR}/etc/init.d/rsyslogd install -m644 ${FILESDIR}/rsyslog.conf ${DESTDIR}/etc/rsyslog.conf + install -m644 ${FILESDIR}/rsyslog.logrotate \ + ${DESTDIR}/etc/logrotate.d/rsyslog }