summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/vyos-http-api.service8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/systemd/vyos-http-api.service b/src/systemd/vyos-http-api.service
index 509af4816..4fa68b4ff 100644
--- a/src/systemd/vyos-http-api.service
+++ b/src/systemd/vyos-http-api.service
@@ -1,9 +1,12 @@
[Unit]
Description=VyOS HTTP API service
-After=auditd.service systemd-user-sessions.service time-sync.target
+After=auditd.service systemd-user-sessions.service time-sync.target vyos-router.service
+Requires=vyos-router.service
[Service]
+ExecStartPre=/usr/libexec/vyos/init/vyos-config
ExecStart=/usr/bin/python3 -u /usr/libexec/vyos/services/vyos-http-api-server
+Type=idle
KillMode=process
SyslogIdentifier=vyos-http-api
@@ -16,5 +19,6 @@ User=root
Group=vyattacfg
[Install]
-WantedBy=multi-user.target
+# Installing in a earlier target leaves ExecStartPre waiting
+WantedBy=getty.target