summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-http-api.service
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-25 17:50:06 +0200
committerGitHub <noreply@github.com>2020-07-25 17:50:06 +0200
commitbfbf51acb2d4b6b5fe2d22d39f7259686f98d2a0 (patch)
tree979a245e4b538daf0a7752a1e4f1a62fa6a4c521 /src/systemd/vyos-http-api.service
parent1a85e758b105d493bb9d95916816bd206345bc5d (diff)
parentbe8cda7f711a7a26c85b51976c299a6837750a63 (diff)
downloadvyos-1x-bfbf51acb2d4b6b5fe2d22d39f7259686f98d2a0.tar.gz
vyos-1x-bfbf51acb2d4b6b5fe2d22d39f7259686f98d2a0.zip
Merge pull request #423 from thomas-mangin/T2494
systemd: T2494: allow to restart vyos-hostsd without consequence
Diffstat (limited to 'src/systemd/vyos-http-api.service')
-rw-r--r--src/systemd/vyos-http-api.service8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/systemd/vyos-http-api.service b/src/systemd/vyos-http-api.service
index 4fa68b4ff..74a97d193 100644
--- a/src/systemd/vyos-http-api.service
+++ b/src/systemd/vyos-http-api.service
@@ -4,9 +4,8 @@ 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=idle
+Type=notify
KillMode=process
SyslogIdentifier=vyos-http-api
@@ -14,11 +13,8 @@ SyslogFacility=daemon
Restart=on-failure
-# Does't work but leave it here
User=root
Group=vyattacfg
[Install]
-# Installing in a earlier target leaves ExecStartPre waiting
-WantedBy=getty.target
-
+WantedBy=vyos.target