Bug 2372726
| Summary: | Use `systemctl kill` in logrotate postrotate script | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Marcos Mello <marcosfrm> |
| Component: | monitorix | Assignee: | Jordi Sanfeliu <jordi> |
| Status: | MODIFIED --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 43 | CC: | jordi |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Marcos Mello
2025-06-13 17:24:52 UTC
If I apply your suggested change then log logrotation won't work on RHEL8 and derivatives: # /usr/bin/systemctl kill --signal=HUP --kill-whom=main monitorix.service /usr/bin/systemctl: unrecognized option '--kill-whom=main' Before systemd 252, the option was --kill-who (still supported for compatibility in later versions). I didn't consider EPEL builds because it's unclear whether the required SELinux policy update for `systemctl kill` to function in this context will be backported to RHEL (RHEL 9 already includes systemd 252, by the way). Thus, this modification applies only to Fedora. Forgot to reply here that I've pushed a commit that should fix this: <https://github.com/mikaku/Monitorix/commit/15f9c86b3866e2c940534303cc2393dd887e1188> The RHEL SELinux policy *needs* to have this commit (present in Fedora 41+) https://github.com/fedora-selinux/selinux-policy/commit/3daaed0cc20a19afd48e82231d1d0ae45129d66d otherwise it won't work. Therefore, it's better to use `0%{?fedora} >= 41` for now. This message is a reminder that Fedora Linux 42 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '42'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 42 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. |