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

  • Done
  • quality assurance status badge
Details
2 participants
  • Brice Waegeneire
  • Leo Famulari
Owner
unassigned
Submitted by
Leo Famulari
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 rotated
logs that are named like "messages.1", "messages.2", etc.

However, these files are compressed with gzip, and gzip refuses to
decompress them until you add '.gz' to the end of the filenames.

I think this should be happening by default but for some reason is
not. rottlog-configuration uses as the default configuration
(file-append rottlog "/etc/rc"), and that file does call for this
extension 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
expand
the meta-variable “@COMP_EXT”[0] which isn't used by default. For it to
be
appended to every rotated log file we need to add the line “storefile
@FILENAME.@COMP_EXT” to /etc/rottlog/weekly, which specify the filename
for
the rotated log file[1][2]. At least that's what I understand after
skimming through the documentation, I have send a patch[3] but it's
untested.

[0]:
[1]:
[2]:

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
?