summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-http-api.service
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-05-23 07:33:47 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-06-25 10:57:58 +0100
commitd9fbad6a6bbba292f31fe50e57af893062c7a584 (patch)
tree3c6b5d14d2062f1ef043d18db1932d22b5c7b0e7 /src/systemd/vyos-http-api.service
parentd41708ee247ce5efc5dc06f2d233e8d620fc6e4a (diff)
downloadvyos-1x-d9fbad6a6bbba292f31fe50e57af893062c7a584.tar.gz
vyos-1x-d9fbad6a6bbba292f31fe50e57af893062c7a584.zip
systemd: T2494: use Type=notify with daemon
Notify systemd via the notify API when the python daemon are ready to take connection https://github.com/torfsen/python-systemd-tutorial
Diffstat (limited to 'src/systemd/vyos-http-api.service')
-rw-r--r--src/systemd/vyos-http-api.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/vyos-http-api.service b/src/systemd/vyos-http-api.service
index 4fa68b4ff..636973be7 100644
--- a/src/systemd/vyos-http-api.service
+++ b/src/systemd/vyos-http-api.service
@@ -6,7 +6,7 @@ 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