From 23565d7130dc49873b23d520809cf8b6a091986d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 4 Oct 2009 16:33:08 +0200 Subject: [PATCH] rsyslog: add logrotate script. Bump revision. --HG-- extra : convert_revision : bed18dc5f19b4b65dee9f5741da2f00fe30085f9 --- templates/rsyslog/files/rsyslog.logrotate | 8 ++++++++ templates/rsyslog/template | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 templates/rsyslog/files/rsyslog.logrotate 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 }