Add a logrotate config for warewulfd.log
Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
0f3aad3812
commit
fbf3e3c0a8
@@ -48,6 +48,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Display an error during boot if no container is defined. #1295
|
||||
- `wwctl conatiner list --kernel` shows the kernel detected for each container. #1283
|
||||
- `wwctl container list --size` shows the uncompressed size of each container. `--compressed` shows the compressed size, and `--chroot` shows the size of the container source on the server. #954, #1117
|
||||
- Add a logrotate config for `warewulfd.log`. #1311
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
1
Makefile
1
Makefile
@@ -120,6 +120,7 @@ install: build docs
|
||||
for f in etc/ipxe/*.ipxe; do install -m 0644 $$f $(DESTDIR)$(WWCONFIGDIR)/ipxe/; done
|
||||
install -m 0644 etc/grub/grub.cfg.ww $(DESTDIR)$(WWCONFIGDIR)/grub/grub.cfg.ww
|
||||
install -m 0644 etc/grub/chainload.ww $(DESTDIR)$(WWOVERLAYDIR)/host/rootfs$(TFTPDIR)/warewulf/grub.cfg.ww
|
||||
install -m 0644 etc/logrotate.d/logrotate.conf $(DESTDIR)$(WWCONFIGDIR)/logrotate.d/logrotate.conf
|
||||
(cd overlays && find * -type f -exec install -D -m 0644 {} $(DESTDIR)$(WWOVERLAYDIR)/{} \;)
|
||||
(cd overlays && find * -type d -exec mkdir -pv $(DESTDIR)$(WWOVERLAYDIR)/{} \;)
|
||||
(cd overlays && find * -type l -exec cp -av {} $(DESTDIR)$(WWOVERLAYDIR)/{} \;)
|
||||
|
||||
11
etc/logrotate.d/warewulfd.conf
Normal file
11
etc/logrotate.d/warewulfd.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
/var/log/warewulfd.log {
|
||||
size 1M
|
||||
compress
|
||||
dateext
|
||||
missingok
|
||||
nocreate
|
||||
notifempty
|
||||
maxage 365
|
||||
rotate 99
|
||||
copytruncate
|
||||
}
|
||||
@@ -175,6 +175,7 @@ getent group %{wwgroup} >/dev/null || groupadd -r %{wwgroup}
|
||||
%config(noreplace) %{_sysconfdir}/warewulf/examples
|
||||
%config(noreplace) %{_sysconfdir}/warewulf/ipxe
|
||||
%config(noreplace) %{_sysconfdir}/warewulf/grub
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/warewulf.conf
|
||||
%config(noreplace) %attr(0640,-,-) %{_sysconfdir}/warewulf/nodes.conf
|
||||
%{_sysconfdir}/bash_completion.d/wwctl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user