Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upcore-linux-agent: systemd presets getting unintentionally overridden somehow #2427
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 11, 2016
Member
Maybe something else start the service? preset only prevent starting the service during system boot (check systemctl status upower.service - there should be "disabled"), but do not prevent starting it manually, or using any other way (like timers, dbus activation etc).
I think it is started through dbus:
/usr/share/dbus-1/system-services/org.freedesktop.UPower.service
[D-BUS Service]
Name=org.freedesktop.UPower
Exec=/usr/libexec/upowerd
User=root
SystemdService=upower.service
Which means, if it's running - something have requested access to UPower API. Masking the service, or adding some Condition=... would prevent it started using any method, but I'm not sure about consequences for an application trying to reach it - it may results in some timeouts or so...
|
Maybe something else start the service? preset only prevent starting the service during system boot (check I think it is started through dbus:
Which means, if it's running - something have requested access to UPower API. Masking the service, or adding some |
jpouellet commentedNov 10, 2016
Qubes OS version (e.g.,
R3.1):R3.2
Affected TemplateVMs (e.g.,
fedora-23, if applicable):fedora-23, possibly also others including dom0 (with
core-admin-linux/system-config/75-qubes-dom0.presets)Expected behavior:
upowerd (an example of something disabled in the systemd presets) should not be enabled or running in any DomU:
Actual behavior:
In an AppVM (fedora23 templated based):
upowerd (an example of something that should be disabled) is actually enabled:
and indeed running:
Steps to reproduce the behavior:
I do not pretend to understand systemd enough to know what triggers this, but consider this report as an observation that it does happen.
Related issues:
https://groups.google.com/forum/#!topic/qubes-users/dpM_GHfmEOk/discussion
https://github.com/QubesOS/qubes-core-agent-linux/blob/master/vm-systemd/75-qubes-vm.preset