[Buildroot] [PATCH 1/1] package/avahi: use upstream-provided systemd files

Maxime Hadjinlian maxime.hadjinlian at gmail.com
Sun Oct 19 11:22:10 UTC 2014


Hi Thomas, all

On Sun, Oct 19, 2014 at 1:15 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear André Erdmann,
>
> On Fri, 17 Oct 2014 21:10:42 +0200, André Erdmann wrote:
>> When using the buildroot-provided avahi-daemon.service file, bootup never
>> finishes, because multi-user.target is waiting for avahi-daemon to exit,
>> which is caused by "Type=oneshot" (in avahi-daemon.service).
>>
>> Upstream's systemd files get already installed to /lib/systemd.
>> They're not an exact copy of S50avahi-daemon, but work flawlessly,
>> so use these units:
>>
>> * avahi-daemon.service, auto-enabled (ln -fs in AVAHI_INSTALL_INIT_SYSTEMD)
>> * avahi-daemon.socket,
>>   not auto-enabled, but a dependency of avahi-daemon.service
>> * avahi-dnsconfd.service, auto-enabled
>>
>> Signed-off-by: André Erdmann <dywi at mailerd.de>
>
> Thanks, applied, after changing the symbolic links to use absolute
> paths instead of relative paths.
>
> Also, I pushed a number of followup commits:
>
> 3b4ec0c6a82fc853b00b2a720d0b945dcb2ea67e avahi: do not install S05avahi-setup.sh in systemd setup
> 6c947771424b139199fc56bb7fff47755a17c6a9 avahi: remove useless 'mkdir -p' in AVAHI_INSTALL_INIT_SYSTEMD
> d2fd9ef86ee096784c9b326004ba928a16d035ae avahi: fix indentation in AVAHI_INSTALL_INIT_SYSTEMD
>
> In the last commit (first in the list), I raise the following question:
>
>     Note: in a systemd configuration, there is no provision to do what
>     S05avahi-setup.sh is doing for sysv init configurations. Maybe this is
>     something that our systemd people should have a look at.
>
> Someone to look into this?
It's already done, look at the avahi_tmpfiles.conf, it's made
explicitly for that.
Note that others daemon could benefit for it, like dropbear, I might
have some patch about that somewhere.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com


More information about the buildroot mailing list