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

Pacho Ramos pacho at gentoo.org
Tue Oct 27 11:42:16 PDT 2015


El lun, 26-10-2015 a las 22:06 +0100, Reindl Harald escribió:
> 
[...]
> 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

Thanks a lot :)

With this solution, what will occur if a user forgets to enable avahi
always but I open gtk printing dialogs that will try to spawn avahi on
demand? Will they be launched then or should we tell people to enable
avahi-daemon always and have it running all the time? :/

Best regards




More information about the systemd-devel mailing list