fwknop icon indicating copy to clipboard operation
fwknop copied to clipboard

Add missing "Wants" directive in systemd unit file

Open fmarier opened this issue 5 years ago • 2 comments

Per the systemd documentation (https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/#cutthecraphowdoimakesurethatmyservicestartsafterthenetworkisreallyonline), both Wants and After are required when using the network-online.target.

Originally reported on the Debian bug tracker: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949323

fmarier avatar Feb 29 '20 22:02 fmarier

Please merge this. I am seeing the following error on Debian 10 when I reboot.

[*] pcap_open_live() error: ens3: That device is not up

The result is that fwknop-server fails to start.

This pull request fixes the issue.

zedtools avatar Jan 11 '21 10:01 zedtools

After further testing it looks like systemd-networkd-wait-online.service also needs to be enabled for this to work.

systemctl enable systemd-networkd-wait-online.service

zedtools avatar Jan 11 '21 11:01 zedtools