In logrotate truncate file instead of recreating it.
This commit is contained in:
parent
914784bb9f
commit
b4d38e6146
@ -1,5 +1,6 @@
|
|||||||
/var/log/dwelling-radio/*log {
|
/var/log/dwelling-radio/*log {
|
||||||
nocreate
|
nocreate
|
||||||
|
copytruncate
|
||||||
missingok
|
missingok
|
||||||
notifempty
|
notifempty
|
||||||
size 10M
|
size 10M
|
||||||
@ -8,8 +9,4 @@
|
|||||||
compressext .zst
|
compressext .zst
|
||||||
compressoptions -T0 --long -15
|
compressoptions -T0 --long -15
|
||||||
uncompresscmd /usr/bin/unzstd
|
uncompresscmd /usr/bin/unzstd
|
||||||
sharedscripts
|
|
||||||
postrotate
|
|
||||||
/bin/pkill -HUP dwelling-radio
|
|
||||||
endscript
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user