[systemd-devel] Proper way of installing avahi dbus activation file

Reindl Harald h.reindl at thelounge.net
Mon Oct 26 14:06:52 PDT 2015



Am 26.10.2015 um 21:58 schrieb Pacho Ramos:
> The problem is that reading:
> https://fedoraproject.org/wiki/Packaging:Systemd#DBus_activation
>
> "Note that the creation/removal of the alias symlinks should be done
> with "systemctl enable" and "systemctl disable" only. You should not
> create these symlinks manually"
>
> It's not clear how could upstream to ensure this link is installed :/
> https://github.com/lathiat/avahi/issues/29

by the Also/Alias in the install section of proper units like the Fedora 
ones

[root at srv-rhsoft:~]$ cat /usr/lib/systemd/system/avahi-daemon.service
[Unit]
Description=Avahi mDNS/DNS-SD Stack
Requires=avahi-daemon.socket

[Service]
Type=dbus
BusName=org.freedesktop.Avahi
ExecStart=/usr/sbin/avahi-daemon -s
ExecReload=/usr/sbin/avahi-daemon -r
NotifyAccess=main

[Install]
WantedBy=multi-user.target
Also=avahi-daemon.socket
Alias=dbus-org.freedesktop.Avahi.service

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20151026/861e87de/attachment.sig>


More information about the systemd-devel mailing list