Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69187 - [ddclient] Use network-online.target in systemd unit

Attached to Project: Community Packages
Opened by Sébastien Luttringer (seblu) - Sunday, 03 January 2021, 01:01 GMT
Last edited by Toolybird (Toolybird) - Friday, 21 April 2023, 02:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Johannes Löthberg (demize)
T.J. Townsend (blakkheim)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Current systemd service is using After=network.target.
ddclient is requiring an online network in order to contact the remote server.

I suggest to replace After=network.target by:

```
Wants=network-online.target
After=network-online.target
```

ddclient send emails like the following after each boot:
```
WARNING: cannot connect to api.ipify.org:80 socket: IO::Socket::INET: Bad hostname 'api.ipify.org'
WARNING: found neither ipv4 nor ipv6 address
```
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 21 April 2023, 02:55 GMT
Reason for closing:  Upstream
Additional comments about closing:  See comments
Comment by nl6720 (nl6720) - Sunday, 03 January 2021, 08:58 GMT
Since ddclient.service requires working DNS resolution, you may want to additionally order it after nss-lookup.target:

From https://jlk.fjfi.cvut.cz/arch/manpages/man/core/systemd/systemd.special.7.en#Special_Passive_System_Units :
"All services for which the availability of full host/network name resolution is essential should be ordered after this target, but not pull it in."


Wants=network-online.target
After=network-online.target nss-lookup.target
Comment by Toolybird (Toolybird) - Friday, 21 April 2023, 02:55 GMT
@nl6720 managed to get this applied upstream [1]. Well done :) Should appear in the next release.

[1] https://github.com/ddclient/ddclient/commit/6312030c5796b36695c7481fcecc1a7420c30af3

Loading...