commit: d09f833fa67ff8d4889b9660b3bfa4f495c9c307
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 20 07:55:24 2016 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Oct 20 07:57:18 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d09f833f
app-admin/consul: add logrotate config
Package-Manager: portage-2.3.2
app-admin/consul/consul-0.6.4.ebuild | 2 ++
app-admin/consul/consul-0.7.0.ebuild | 2 ++
app-admin/consul/files/consul.logrotated | 8 ++++++++
3 files changed, 12 insertions(+)
diff --git a/app-admin/consul/consul-0.6.4.ebuild
b/app-admin/consul/consul-0.6.4.ebuild
index 89b6d54..760b1a0 100644
--- a/app-admin/consul/consul-0.6.4.ebuild
+++ b/app-admin/consul/consul-0.6.4.ebuild
@@ -164,6 +164,8 @@ src_install() {
newinitd "${FILESDIR}/consul.initd" "${PN}"
newconfd "${FILESDIR}/consul.confd" "${PN}"
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
systemd_dounit "${FILESDIR}/consul.service"
find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete
|| die
diff --git a/app-admin/consul/consul-0.7.0.ebuild
b/app-admin/consul/consul-0.7.0.ebuild
index dee540f..c3b7b2f 100644
--- a/app-admin/consul/consul-0.7.0.ebuild
+++ b/app-admin/consul/consul-0.7.0.ebuild
@@ -104,6 +104,8 @@ src_install() {
newinitd "${FILESDIR}/consul.initd" "${PN}"
newconfd "${FILESDIR}/consul.confd" "${PN}"
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
systemd_dounit "${FILESDIR}/consul.service"
find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete
|| die
diff --git a/app-admin/consul/files/consul.logrotated
b/app-admin/consul/files/consul.logrotated
new file mode 100644
index 00000000..e27b8aa
--- /dev/null
+++ b/app-admin/consul/files/consul.logrotated
@@ -0,0 +1,8 @@
+/var/log/consul/consul.log {
+ su consul consul
+ missingok
+ size 5M
+ rotate 3
+ compress
+ copytruncate
+}