Skip to content

Commit

Permalink
app-admin/vault: add logrotate config
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.2
  • Loading branch information
zmedico committed Oct 20, 2016
1 parent d70745a commit 3db3914
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app-admin/vault/files/vault.logrotated
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/var/log/vault/vault.log {
su vault vault
missingok
size 5M
rotate 3
compress
copytruncate
}
2 changes: 2 additions & 0 deletions app-admin/vault/vault-0.5.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ src_install() {
dodoc "${S}"/src/${EGO_PN%/*}/{CHANGELOG.md,CONTRIBUTING.md,README.md}
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
insinto /etc/logrotate.d
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
systemd_dounit "${FILESDIR}/${PN}.service"

keepdir /etc/${PN}.d
Expand Down
2 changes: 2 additions & 0 deletions app-admin/vault/vault-0.6.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ src_install() {
dodoc "${S}"/src/${EGO_PN%/*}/{CHANGELOG.md,CONTRIBUTING.md,README.md}
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
insinto /etc/logrotate.d
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
systemd_dounit "${FILESDIR}/${PN}.service"

keepdir /etc/${PN}.d
Expand Down

0 comments on commit 3db3914

Please sign in to comment.