mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-db/etcd: add logrotate config
Package-Manager: portage-2.3.2
This commit is contained in:
@@ -44,6 +44,8 @@ src_install() {
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
dodir /var/lib/${PN}
|
||||
fowners ${PN}:${PN} /var/lib/${PN}
|
||||
fperms 755 /var/lib/${PN}
|
||||
|
||||
8
dev-db/etcd/files/etcd.logrotated
Normal file
8
dev-db/etcd/files/etcd.logrotated
Normal file
@@ -0,0 +1,8 @@
|
||||
/var/log/etcd/etcd.log /var/log/etcd/etcd.err {
|
||||
su etcd etcd
|
||||
missingok
|
||||
size 5M
|
||||
rotate 3
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
Reference in New Issue
Block a user