FS#47685 - [pdnsd] systemd service fails to load pdnsd *after* the interface is up

Attached to Project: Community Packages
Opened by Vorbote (vorbote) - Sunday, 10 January 2016, 01:13 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 19 January 2016, 15:17 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Daniel Micay (thestinger)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The systemd service fails to load the pdnsd daemon *after* the interface is up with NetworkManager The reason for this is that the service depends on network.target, not on network-online.target and it neither waits for network-online.target to be finished. As is, pdnsd starts but has no access to the datalink because it starts after pdnsd. To obtain DNS resolution, you need to restart pdnsd by hand

Rating high because it breaks functionality.

This service file works as expected:

##################################################################
[Unit]
Description=proxy name server
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/bin/pdnsd

[Install]
WantedBy=multi-user.target
##################################################################
This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 19 January 2016, 15:17 GMT
Reason for closing:  Fixed
Comment by Daniel Micay (thestinger) - Sunday, 10 January 2016, 23:52 GMT
IIRC you're supposed to put both, not only network-online. I need to look at the docs again when I have time.
Comment by Sergej Pupykin (sergej) - Monday, 11 January 2016, 13:08 GMT
I think it is not a bug. network-online is NM specific so it would not be good to add it to pdnsd deps.

I suggest you to use
$ systemctl edit pdnsd
to adjust pdnsd deps
Comment by Vorbote (vorbote) - Monday, 11 January 2016, 22:03 GMT
Hmm... But network-online is part of systemd! I think it can be added without harming other network connection methods. I just tested systemd-networkd+wpa_supplicant and it works fine with network and network-online added to Wants and After. (This laptop never moves from my desk and I use the router DMZ's ip with it; Network Manager is overkill anyway).

What is worrying is that NM upstream has decided in all its wisdom to enable NetworkManager-wait-online system-wide. I still prefer GNOME (or GNOME-i3) but I'm starting to feel they are shoving NM down our collective throats. *Sigh*
Comment by Sergej Pupykin (sergej) - Wednesday, 13 January 2016, 17:58 GMT
Let's try pdnsd 1.2.9.a-9 with network-online dep until some non-networkmanager user report a bug.)

Loading...