dev-python/flower: add logrotate config

Package-Manager: portage-2.2.28
This commit is contained in:
Zac Medico
2016-03-29 12:07:22 -07:00
parent 1569f05952
commit 1aec378925
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
/var/log/flower/flower.log {
su flower flower
missingok
size 5M
rotate 3
compress
}

View File

@@ -44,6 +44,8 @@ src_install() {
systemd_dounit "${FILESDIR}/${PN}.service"
keepdir /var/log/${PN}
fowners ${PN}:${PN} /var/log/${PN}
insinto /etc/logrotate.d
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
}
python_install() {