4
0
Fork 2
mirror of https://gerrit.hackerspace.pl/hscloud synced 2024-10-18 02:58:06 +00:00

h/m/customs: ulogd pcap logrotate compression fix

Misunderstood the logrotate.conf manual and somehow missed lack of the
"delaycompress" option in the output. "compress" needs to be specified
explicitly, despite the presence of other compression-related options,
and nix configuration generator requires "true", not "null", for entries
with no options to be present in output.

Change-Id: Ibe0c41a4b657ff598b2a0613f1ff6fe67f20ca3b
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1908
Reviewed-by: q3k <q3k@hackerspace.pl>
Reviewed-by: informatic <informatic@hackerspace.pl>
This commit is contained in:
ar 2024-02-25 11:55:47 +01:00 committed by ar
parent c8d1d51c11
commit 2589ce6e82

View file

@ -415,7 +415,8 @@ in {
${pkgs.killall}/bin/killall -HUP ulogd
'';
rotate = 55;
delaycompress = null;
delaycompress = true;
compress = true;
compresscmd = "${pkgs.zstd}/bin/zstd";
uncompresscmd = "${pkgs.zstd}/bin/unzstd";
compressext = ".zst";