Commit e732b8bc authored by Natanael Copa's avatar Natanael Copa

main/chrony: add logrotate script

fixes #82
parent 94dbf79b
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=chrony
pkgver=1.23
pkgrel=2
pkgrel=3
pkgdesc="NTP client and server programs"
url="http://chrony.sunsite.dk/"
license="GPL-2"
depends=
depends="logrotate"
makedepends="texinfo"
subpackages="$pkgname-doc"
source="http://chrony.sunsite.dk/download/$pkgname-$pkgver.tar.gz
......@@ -16,6 +16,7 @@ source="http://chrony.sunsite.dk/download/$pkgname-$pkgver.tar.gz
$pkgname-1.23-reply-ip.diff
chronyd.confd
chronyd.initd
chrony.logrotate
chrony.conf
"
......@@ -57,4 +58,5 @@ d47015a34b6b2f9eebca77ef939cec72 chrony-1.21-makefile.diff
caa6589a1a1cd56f64957e312d1ef84c chrony-1.23-reply-ip.diff
d5c09be46226774d22c08c5a4c28093a chronyd.confd
dac8aa4913d7c323abfa1719ddd7e5e4 chronyd.initd
468eaf2b5465d60b3ee021ce3f948ab1 chrony.logrotate
46f42c52953d398ca44d6baa449618d7 chrony.conf"
/var/log/chrony/*.log
sharedscripts
postrotate
PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' /etc/chrony/chrony.keys`
cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d'
password $PASSWORD
cyclelogs
EOF
endscript
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment