diff options
author | Zac Medico <zmedico@gentoo.org> | 2016-10-21 09:15:07 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-10-21 09:18:21 -0700 |
commit | ebbb4f059fbf3d0fecab0282ae5b8969cd13a085 (patch) | |
tree | 7e57da9d392ff68b58532b3c6def82a4acaa9bb0 /dev-db/etcd | |
parent | media-libs/opencv: drop ppc to testing (diff) | |
download | gentoo-ebbb4f059fbf3d0fecab0282ae5b8969cd13a085.tar.gz gentoo-ebbb4f059fbf3d0fecab0282ae5b8969cd13a085.tar.bz2 gentoo-ebbb4f059fbf3d0fecab0282ae5b8969cd13a085.zip |
dev-db/etcd: add logrotate config
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-db/etcd')
-rw-r--r-- | dev-db/etcd/etcd-2.3.7.ebuild | 2 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.logrotated | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/dev-db/etcd/etcd-2.3.7.ebuild b/dev-db/etcd/etcd-2.3.7.ebuild index 0b5a7bf31312..0b2406f1af3d 100644 --- a/dev-db/etcd/etcd-2.3.7.ebuild +++ b/dev-db/etcd/etcd-2.3.7.ebuild @@ -44,6 +44,8 @@ src_install() { systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf newinitd "${FILESDIR}"/${PN}.initd ${PN} newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" dodir /var/lib/${PN} fowners ${PN}:${PN} /var/lib/${PN} fperms 755 /var/lib/${PN} diff --git a/dev-db/etcd/files/etcd.logrotated b/dev-db/etcd/files/etcd.logrotated new file mode 100644 index 000000000000..bd6434411c76 --- /dev/null +++ b/dev-db/etcd/files/etcd.logrotated @@ -0,0 +1,8 @@ +/var/log/etcd/etcd.log /var/log/etcd/etcd.err { + su etcd etcd + missingok + size 5M + rotate 3 + compress + copytruncate +} |