diff --git a/app-admin/consul/consul-0.6.4.ebuild b/app-admin/consul/consul-0.6.4.ebuild index 89b6d54209688..760b1a0949717 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 dee540ff628a6..c3b7b2fc3faa6 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 0000000000000..e27b8aa543d9b --- /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 +}