From 43b0bbbc9b5b00b3e91dde7e7cffe8dc8497b8ce Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 22 Aug 2019 12:51:12 -0500 Subject: T1606: change vyos-hostsd systemd target to avoid boot problems --- src/systemd/vyos-hostsd.service | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/systemd') 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 -- cgit v1.2.3