chrony: rotate log files in /var/log/chrony.

This commit is contained in:
Juan RP 2011-10-14 00:53:31 +02:00
parent 939ff62bec
commit 6d83149244
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,7 @@
/var/log/chrony/* {
missingok
sharedscripts
postrotate
systemctl try-restart chronie.service >/dev/null 2>&1 || true
endscript
}

View File

@ -1,7 +1,7 @@
# Template file for 'chrony'
pkgname=chrony
version=1.26
revision=2
revision=3
homepage="http://chrony.tuxfamily.org/"
distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz"
build_style=gnu_configure
@ -35,5 +35,6 @@ Add_dependency build readline-devel
post_install() {
vinstall ${FILESDIR}/chrony.conf 644 etc
vinstall ${FILESDIR}/chrony.service 644 lib/systemd/system
vinstall ${FILESDIR}/chrony.logrotate 644 etc/logrotate.d chrony
rm -rf ${DESTDIR}/usr/share/doc
}