summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/services/vyos-http-api-server3
-rw-r--r--src/systemd/vyos-http-api.service6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index 32f8adc73..7b9e3d671 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -135,8 +135,9 @@ def configure():
# Don't give the details away to the outer world
error_msg = "An internal error occured. Check the logs for details."
+ finally:
+ lock.release()
- lock.release()
if status != 200:
return error(status, error_msg)
else:
diff --git a/src/systemd/vyos-http-api.service b/src/systemd/vyos-http-api.service
index f0665e3d5..53322a84f 100644
--- a/src/systemd/vyos-http-api.service
+++ b/src/systemd/vyos-http-api.service
@@ -3,10 +3,12 @@ Description=VyOS HTTP API service
After=auditd.service systemd-user-sessions.service time-sync.target
[Service]
-ExecStart=/usr/libexec/vyos/services/vyos-http-api-server
-ExecReload=/bin/kill -TERM $MAINPID
+ExecStart=/usr/bin/python3 -u /usr/libexec/vyos/services/vyos-http-api-server
KillMode=process
+SyslogIdentifier=vyos-http-api
+SyslogFacility=daemon
+
# Does't work but leave it here
User=root
Group=vyattacfg