summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@sentrium.io>2019-08-22 12:51:12 -0500
committerJohn Estabrook <jestabro@sentrium.io>2019-08-22 14:08:09 -0500
commitdb67a7e9e6f448567203ceb5f6364e78c7bb3300 (patch)
treec71a5b3e038ce8e650258fffba2d3a808d9f0183
parentcee38e3ed090fcb98ffd49a7c8234060ea9b731f (diff)
downloadvyos-1x-db67a7e9e6f448567203ceb5f6364e78c7bb3300.tar.gz
vyos-1x-db67a7e9e6f448567203ceb5f6364e78c7bb3300.zip
T1606: change vyos-hostsd systemd target to avoid boot problems
-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