add logrotate

This commit is contained in:
Muhammad Herdiansyah 2021-11-19 19:54:09 +07:00
parent eb20e93e29
commit 969b259bf6
2 changed files with 8 additions and 0 deletions

View file

@ -130,3 +130,4 @@ install:
done
# misc
install -Dm644 misc/50-default.conf $(DESTDIR)$(LIBDIR)/sysctl.d/50-default.conf
install -Dm644 misc/dinit.logrotate $(DESTDIR)$(SYSCONFDIR)/logrotate.d/dinit

7
misc/dinit.logrotate Normal file
View file

@ -0,0 +1,7 @@
/var/log/dinit/*.log {
compress
rotate 4
weekly
missingok
notifempty
}