Rottlog service should create filenames with a '.gz' extension

DoneSubmitted by Leo Famulari.
Details
2 participants
  • Brice Waegeneire
  • Leo Famulari
Owner
unassigned
Severity
normal
L
L
Leo Famulari wrote on 28 Apr 2020 19:36
(address . bug-guix@gnu.org)
20200428173653.GA27488@jasmine.lan
Currently, the rottlog service in %base-services creates old rotatedlogs that are named like "messages.1", "messages.2", etc.
However, these files are compressed with gzip, and gzip refuses todecompress them until you add '.gz' to the end of the filenames.
I think this should be happening by default but for some reason isnot. rottlog-configuration uses as the default configuration(file-append rottlog "/etc/rc"), and that file does call for thisextension to be added...
B
B
Brice Waegeneire wrote on 29 Apr 2020 09:43
(address . leo@famulari.name)(address . 40945@debbugs.gnu.org)
e4b1320eccaf0d67bc492dad0090ea14@waegenei.re
Hello Leo,
In /etc/rottlog/rc the line “extension="gz"” has for only effect to expandthe meta-variable “@COMP_EXT”[0] which isn't used by default. For it to beappended to every rotated log file we need to add the line “storefile@FILENAME.@COMP_EXT” to /etc/rottlog/weekly, which specify the filename forthe rotated log file[1][2]. At least that's what I understand afterskimming through the documentation, I have send a patch[3] but it'suntested.
[0]: https://www.gnu.org/software/rottlog/manual/rottlog.html#Mandatory-RC-Variables[1]: https://www.gnu.org/software/rottlog/manual/rottlog.html#Use-of-meta_002dvariables[2]: https://www.gnu.org/software/rottlog/manual/rottlog.html#Configuration-parameters[3]: https://issues.guix.info/issue/40953
Cheers,- Brice
B
B
Brice Waegeneire wrote on 6 May 2020 11:19
(no subject)
(address . 40945-done@debbugs.gnu.org)
a9cbcf94b5973b99431f9508da193d84@waegenei.re
Fixed by ab034adfe86333fccd6afe476806f169e2074d69.
Closed
?