Web lists-archives.com

Re: systemd error




	Hi.

On Sun, Mar 10, 2019 at 01:03:47PM -0000, Curt wrote:
> On 2019-03-10, Eduardo M KALINOWSKI <eduardo@xxxxxxxxxxxxxxxxx> wrote:
> >> 
> >> # directory name is crucial
> >> mkdir /etc/systemd/system/minissdpd.service.d
> >> # file name is not important
> >> cat > /etc/systemd/system/minissdpd.service.d/override.conf << EOF
> >> [Unit]
> >> After=sys-subsystem-net-devices-enp7s0.device sys-subsystem-net-devices-wlp6s0.device
> >> Requires=sys-subsystem-net-devices-enp7s0.device sys-subsystem-net-devices-wlp6s0.device
> >> EOF
> >> 
> >> systemctl daemon-reload
> >
> > Or run
> >
> > systemctl edit minissdpd.service
> >
> > which will create the file in the appropriate location, open $EDITOR on
> > it, and run daemon-reload automatically afterwards.
> >
> 
> I have
> 
>  After=network-online.target
>  Wants=network-online.target
> 
> as per this bug report:
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861231

That's good for listening INADDR_ANY, but it's not sufficient in this
particular case.


> Perhaps I'm missing something here.

network-online.target does not guarantee that specific network
interfaces will be present.
For instance, enp7s0 can be configured instantly (static IP assignment),
wlp6s0 can lag behind it (dhcp assignment).

Reco