chrony: rotate log files in /var/log/chrony.
This commit is contained in:
parent
939ff62bec
commit
6d83149244
2 changed files with 9 additions and 1 deletions
7
srcpkgs/chrony/files/chrony.logrotate
Normal file
7
srcpkgs/chrony/files/chrony.logrotate
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/var/log/chrony/* {
|
||||||
|
missingok
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
systemctl try-restart chronie.service >/dev/null 2>&1 || true
|
||||||
|
endscript
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'chrony'
|
# Template file for 'chrony'
|
||||||
pkgname=chrony
|
pkgname=chrony
|
||||||
version=1.26
|
version=1.26
|
||||||
revision=2
|
revision=3
|
||||||
homepage="http://chrony.tuxfamily.org/"
|
homepage="http://chrony.tuxfamily.org/"
|
||||||
distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz"
|
distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
|
@ -35,5 +35,6 @@ Add_dependency build readline-devel
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/chrony.conf 644 etc
|
vinstall ${FILESDIR}/chrony.conf 644 etc
|
||||||
vinstall ${FILESDIR}/chrony.service 644 lib/systemd/system
|
vinstall ${FILESDIR}/chrony.service 644 lib/systemd/system
|
||||||
|
vinstall ${FILESDIR}/chrony.logrotate 644 etc/logrotate.d chrony
|
||||||
rm -rf ${DESTDIR}/usr/share/doc
|
rm -rf ${DESTDIR}/usr/share/doc
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue