summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-http-api.service
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd/vyos-http-api.service')
-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 74a97d193..4fa68b4ff 100644
--- a/src/systemd/vyos-http-api.service
+++ b/src/systemd/vyos-http-api.service
@@ -4,8 +4,9 @@ After=auditd.service systemd-user-sessions.service time-sync.target vyos-router.
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=notify
+Type=idle
KillMode=process
SyslogIdentifier=vyos-http-api
@@ -13,8 +14,11 @@ SyslogFacility=daemon
Restart=on-failure
+# Does't work but leave it here
User=root
Group=vyattacfg
[Install]
-WantedBy=vyos.target
+# Installing in a earlier target leaves ExecStartPre waiting
+WantedBy=getty.target
+