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

Andrei Borzenkov arvidjaar at gmail.com
Mon Oct 26 22:10:56 PDT 2015



Отправлено с iPhone

> 27 окт. 2015 г., в 0:06, Reindl Harald <h.reindl at thelounge.net> написал(а):
> 
> 
> 
>> 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
> 

I suspect the actual question is "how to make sure it is always installed together with D-Bus service definition". As soon as you have it, there is no way to disable systemd service without getting spammed.


> [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
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list