summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-http-api.service
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-06-17 14:04:58 +0200
committerDaniil Baturin <daniil@baturin.org>2019-06-17 14:04:58 +0200
commit2c12af330c51468927df3e85ca23aaf9098ff4f8 (patch)
tree85bca2d8c5e3afb4bd5c90558b70b4869f81402f /src/systemd/vyos-http-api.service
parentfc2cc0f9b660408d5fc0cffcaffc33bfbc8ca5f2 (diff)
downloadvyos-1x-2c12af330c51468927df3e85ca23aaf9098ff4f8.tar.gz
vyos-1x-2c12af330c51468927df3e85ca23aaf9098ff4f8.zip
T1431: Fix vyos-http-server logging to journald.
Diffstat (limited to 'src/systemd/vyos-http-api.service')
-rw-r--r--src/systemd/vyos-http-api.service6
1 files changed, 4 insertions, 2 deletions
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