summaryrefslogtreecommitdiff
path: root/data/templates/https/vyos-http-api.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/https/vyos-http-api.service.j2')
-rw-r--r--data/templates/https/vyos-http-api.service.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/https/vyos-http-api.service.j2 b/data/templates/https/vyos-http-api.service.j2
index fb424e06c..aa4da7666 100644
--- a/data/templates/https/vyos-http-api.service.j2
+++ b/data/templates/https/vyos-http-api.service.j2
@@ -3,9 +3,11 @@
Description=VyOS HTTP API service
After=vyos-router.service
Requires=vyos-router.service
+ConditionPathExists={{ api_config_state }}
[Service]
ExecStart={{ vrf_command }}/usr/libexec/vyos/services/vyos-http-api-server
+ExecReload=kill -HUP $MAINPID
Type=idle
SyslogIdentifier=vyos-http-api
@@ -19,4 +21,3 @@ Group=vyattacfg
[Install]
WantedBy=vyos.target
-