Bug 2168363
| Summary: | syslog messages do not get categorized under a systemd unit | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Dalibor Pospíšil <dapospis> |
| Component: | systemd | Assignee: | systemd maint <systemd-maint> |
| Status: | NEW --- | QA Contact: | Frantisek Sumsal <fsumsal> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.8 | CC: | dtardon, systemd-maint-list |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dalibor Pospíšil
2023-02-08 19:53:57 UTC
(In reply to Dalibor Pospíšil from comment #0) > Steps to Reproduce: > 1. systemctl stop usbguard > 2. since=$(date +"%F %T") > 3. sleep 1 > 4. echo "SomeNonexistentDirective=12345" >> > /etc/usbguard/usbguard-daemon.conf > 5. systemctl reset-failed usbguard This is not needed. `systemctl start` (or restart) doesn't care about the initial state. > 6. systemctl restart usbguard > 7. sleep 2 > 8. journalctl --flush This does something else than you think. > 9. sleep 1 > 10. journalctl -u usbguard -l --since '$since' --no-pager > > Actual results: > no messages coming from the usbguard-daemon This looks like a known race: the daemon had exited too quickly, before journald has had a chance to determine its cgroup. It only happens with legacy/hybrid cgroup hierarchy, though; it works fine with unified hierarchy (which is used by default on RHEL-9, hence the problem doesn't manifest there either)... So what would be the recommendation to make it work correctly on RHEL-8? |