[systemd-devel] instantiated services set up

Lennart Poettering lennart at poettering.net
Wed Nov 5 03:30:38 PST 2014


On Tue, 04.11.14 21:42, Tomasz Torcz (tomek at pipebreaker.pl) wrote:

> On Tue, Nov 04, 2014 at 08:56:48PM +0100, Jan Včelák wrote:
> > Hi!
> > 
> > > > OK. I will remove the syslog. But I will have to keep network.target for
> > > > now as we support non-Linux systems as well. Adding support for rtnl or
> > > > IP_FREEBIND would mean duplicating a lot of code... probably.
> > > 
> > > Note that invoking IP_FREEBIND is just a single setsockopt() line...
> > 
> > You are right. We enabled IP_FREEBIND after all. (And we also added IP_BINDANY 
> > and IPV6_BINDANY on FreeBSD to achieve the same behavior.)
> > 
> > On the other hand, we cannot give the administrator proper feedback when the 
> > daemon is configured incorrectly.
> > 
> 
>   If you need, you can first try binding without IP_FREEBIND. If it fails,
> you can print "Configured address (xxx) not available yet", enable IP_FREEBIND
> and call bind() again.

I'd recommend this, too. I'd check for the right errno first though,
given that there might be other reasons why bind() could fail, and one
shouldn't confuse the user with misleadin error messages.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list