Skip to content

Commit

Permalink
pkgfile-update.service: Add After=nss-lookup.target
Browse files Browse the repository at this point in the history
This is a follow-up of #51 ("Make systemd unit depend on network-online.target") that enhances the unit file with `After=nss-lookup.target`.

This is needed as per https://wiki.archlinux.org/title/systemd#Running_services_after_the_network_is_up:

> From systemd.special(7):
> "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."
  • Loading branch information
thiagowfx authored and falconindy committed Aug 7, 2024
1 parent 8506088 commit 37a483f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemd/pkgfile-update.service.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=pkgfile database update
RequiresMountsFor=@DEFAULT_CACHEPATH@
After=network-online.target
After=network-online.target nss-lookup.target
Wants=network-online.target

[Service]
Expand Down

0 comments on commit 37a483f

Please sign in to comment.