summarylogtreecommitdiffstats
path: root/pkgdistcached.service
AgeCommit message (Collapse)Author
2022-09-17Avoid DynamicUser to workaround systemd/dbus regressionEric Anderson
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
2018-03-01Add service dep on avahi-daemonEric Anderson
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.
2017-12-28Remove unnecessary server codeEric Anderson
2017-10-29Use DynamicUser instead of nobodyEric Anderson
This provides better isolation from other processes that may be running as nobody.
2016-12-10Security-harden service fileEric Anderson
2015-06-20Initial importEric Anderson