diff options
author | Eric Anderson | 2018-03-01 07:46:10 -0800 |
---|---|---|
committer | Eric Anderson | 2018-03-01 07:46:10 -0800 |
commit | 98d647cb6a1101df86f23c45808771be0165dfd2 (patch) | |
tree | 1998b29a76d3ee11cf7df37359ea61aa030abc2a /pkgdistcached.service | |
parent | 52c5480cb8a7f1f00980549af57b4607cfabbe74 (diff) | |
download | aur-98d647cb6a1101df86f23c45808771be0165dfd2.tar.gz |
Add service dep on avahi-daemon
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.
Diffstat (limited to 'pkgdistcached.service')
-rw-r--r-- | pkgdistcached.service | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgdistcached.service b/pkgdistcached.service index 09f9ce3bdc00..db1303fa3c7a 100644 --- a/pkgdistcached.service +++ b/pkgdistcached.service @@ -1,5 +1,7 @@ [Unit] Description=Distributed pacman package cache +Requires=avahi-daemon.service +After=avahi-daemon.service [Service] ExecStart=/usr/lib/pkgdistcache/pkgdistcache-daemon |