Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#40058 - [atop] Invalid log file name in atop.service file
Attached to Project:
Community Packages
Opened by Konstantin (kstep) - Wednesday, 23 April 2014, 22:21 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 25 April 2014, 13:25 GMT
Opened by Konstantin (kstep) - Wednesday, 23 April 2014, 22:21 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 25 April 2014, 13:25 GMT
|
DetailsDescription:
Invalid log file name in atop.service file. Log file should contain timestamp as year-month-day triplet. Now atop.service contains this line: ExecStart=/bin/sh -c '/usr/bin/atop -a -w /var/log/atop/atop_$(date +%Y%m%d) 600' Which produces the following command (systemctl status atop.service): CGroup: /system.slice/atop.service └─2495 /usr/bin/atop -a -w /var/log/atop/atop_2014ba7a28bdbd8743ac910d282ea4153d3523 600 According to systemd.unit docs '%m' string is replaced with machine id (ba7a28bdbd8743ac910d282ea4153d35 in my case): "%m" Machine ID The machine ID of the running system, formatted as string. See machine-id(5) for more information. from (http://www.freedesktop.org/software/systemd/man/systemd.unit.html). To fix it one should double all percent signs in the command from atop.service, so the command should look like: ExecStart=/bin/sh -c '/usr/bin/atop -a -w /var/log/atop/atop_$(date +%%Y%%m%%d) 600' Now only '%m' has special meaning in systemd service files, but given they use percent-letter format for different placeholder, one should consider risk of stumbling upon future changes in systemd, so all percent signs should be double in this case. Please fix it in package ASAP. Thank you. Additional info: * package version(s): 2.0.2-1 |
This task depends upon
I reported back to upstream author at http://www.atoptool.nl/index.php, I'll see what they say.