mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 23:28:08 -07:00
games-action/minetest: Add logrotate configuration file
Closes: https://bugs.gentoo.org/725122 Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/15969 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
c288c4436e
commit
1ffce436ef
5
games-action/minetest/files/minetestserver.logrotate
Normal file
5
games-action/minetest/files/minetestserver.logrotate
Normal file
@@ -0,0 +1,5 @@
|
||||
/var/log/minetest/minetest-server.log {
|
||||
rotate 5
|
||||
weekly
|
||||
copytruncate
|
||||
}
|
||||
@@ -114,6 +114,9 @@ src_install() {
|
||||
|
||||
newconfd "${T}"/minetestserver.confd minetest-server
|
||||
newinitd "${FILESDIR}"/minetestserver.initd minetest-server
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/minetestserver.logrotate minetest-server
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user