Age | Commit message (Collapse) | Author |
|
Systemd broke dbus for DynamicUsers, as discussed in
https://github.com/systemd/systemd/issues/22737. Although the issue is
avoided when using dbus-broker, I suspect most Arch systems are using
dbus-daemon.
This essentially reverts e0dc7e9879
|
|
When dbus activation is working the After=avahi-daemon should not be
necessary. However, it appears that dbus activation is only correctly
configured when avahi-daemon is enabled as that's when the appropriate
symlink is created. It would fail with:
Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service not found.
While Requires=avahi-daemon needs to be present for the same reason as
After=, pkgdistcache-daemon does not currently notice if avahi-daemon is
restarted. When Avahi restarts it forgets the previous publishes. So I
work around that by having pkgdistcached restart when avahi-daemon
restarts via Requires=. While I could make pkgdistcache-daemon notice
the restart, it doesn't gain us anything because of the dbus activation
issue.
|
|
|
|
This provides better isolation from other processes that may be running
as nobody.
|
|
|
|
|