summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/vyos-hostsd.service9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/systemd/vyos-hostsd.service b/src/systemd/vyos-hostsd.service
index 8ff213d2b..3b0fadb5c 100644
--- a/src/systemd/vyos-hostsd.service
+++ b/src/systemd/vyos-hostsd.service
@@ -1,7 +1,8 @@
[Unit]
Description=VyOS DNS configuration keeper
-After=auditd.service systemd-user-sessions.service time-sync.target
-Before=vyos-router.service cloud-init.service
+After=auditd.service time-sync.target
+Before=network-pre.target vyos-router.service
+Wants=network-pre.target
[Service]
ExecStart=/usr/bin/python3 -u /usr/libexec/vyos/services/vyos-hostsd
@@ -18,6 +19,6 @@ User=root
Group=vyattacfg
[Install]
-# Installing in a earlier target leaves ExecStartPre waiting
-WantedBy=getty.target
+#
+WantedBy=network.target