Dne 28. 07. 21 v 15:07 Ben Cotton napsal(a):
== Benefit to Fedora ==
This fixes a long-standing missing feature. We certainly wanted to
have this, but the technical implementation is not trivial, because we
need to (safely and robustly) reach from the a privileged context into
unprivileged user manager instances. Such functionality has been added
in systemd, so finally we are able to do this in a fairly clean
manner.
Only partially true. There is `tracer` with dnf plugin. It have been here for few years. Users are suggested which
services need to be restarted (and are safe to be restarted), if they need to logoff/login or even restart a machine.
User services are becoming more and more important. In particular, we
want to be able to restart services such as `pipewire.service` during
upgrades, without requiring a restart of the machine for the upgrade
to take effect. Systemd only provides the general functionality.
Package maintainers will need to mark their services for restart using
`%systemd_postun_with_restart` if appropriate.
I think that this needs to be expanded.
1) It will be good to expand what is actually an user service. I had to look it up. Hint for others:
systemctl --user status
2) Do you want to restart all user services? Or just these which are marked by maintainers to be safe to be restarted
(e.g., pipewire)? Because
systemctl --user restart plasma-ksmserver.service
is not what I want to see to happen in rpm transaction as that immediately kills my session and interrupt the rpm
transaction.
3) Can we have some discussions which user services are safe to restart and which not? E.g., the Tracer configuration is
a good start point.
== How To Test ==
Upgrade packages with user services that should be restarted. Look at
logs or otherwise verify that the new version is running.
Can the guidance be more specific here?
== User Experience ==
Updates of user services take effect immediately (if so configured in
the providing packages).
Can this be expanded too? What will be the **practical** impact? Will my audio stops? Or has just little glitch? What
about my bluetooth connections? Etc.
Miroslav
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure