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

Reindl Harald h.reindl at thelounge.net
Tue Oct 27 12:05:28 PDT 2015



Am 27.10.2015 um 19:42 schrieb Pacho Ramos:
> 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? :/

normally only the socket should needed to be enabled while in case of 
avahi i am not sure if it works as expected

"avahi-browse -all" with only the socket enabled at least on fedora fails

-------------- 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/20151027/4d734703/attachment.sig>


More information about the systemd-devel mailing list