diff --git a/configs/logrotate b/configs/logrotate new file mode 100644 index 0000000..aa8be9b --- /dev/null +++ b/configs/logrotate @@ -0,0 +1,15 @@ +/var/log/dwelling-upload/upload.log { + nocreate + size 1M + compress + compresscmd /usr/bin/zstd + compressext .zst + compressoptions -T0 --long -15 + uncompresscmd /usr/bin/unzstd + sharedscripts + missingok + notifempty + postrotate + /bin/pkill -HUP dwelling-upload + endscript +} \ No newline at end of file