Description
All OpenNebula services fail to execute gzip command since wildcard is not working in the ExecStartPre statement.
/usr/bin/sh: gzip -9 /var/log/one/sched.log-* &: No such file or directory
To Reproduce
Restarting any service.
systemctl restart opennebula*
Expected behavior
Rotated logs being compressed.
Details
Affected Component: All OpenNebula services
Hypervisor: Does not apply
Version: 6.6.1.1
Additional context
The sh shell should be executed with the -c parameter to parse properly the wildcard.
A better solution, instead of rotating and compressing on each restart, could be to add compress/delaycompress option/s to the logrotate conf files and maybe combined with maxsize.
Description All OpenNebula services fail to execute
gzip
command since wildcard is not working in theExecStartPre
statement./usr/bin/sh: gzip -9 /var/log/one/sched.log-* &: No such file or directory
To Reproduce Restarting any service.
systemctl restart opennebula*
Expected behavior Rotated logs being compressed.
Details
Additional context The
sh
shell should be executed with the-c
parameter to parse properly the wildcard. A better solution, instead of rotating and compressing on each restart, could be to addcompress/delaycompress
option/s to the logrotate conf files and maybe combined withmaxsize
.Progress Status