app-admin/consul: add logrotate config

Package-Manager: portage-2.3.2
This commit is contained in:
Zac Medico
2016-10-20 00:57:18 -07:00
parent d456352a85
commit d09f833fa6
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -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
+2
View File
@@ -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
+8
View File
@@ -0,0 +1,8 @@
/var/log/consul/consul.log {
su consul consul
missingok
size 5M
rotate 3
compress
copytruncate
}