chrony: rotate log files in /var/log/chrony.
This commit is contained in:
parent
939ff62bec
commit
6d83149244
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'
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user