From 2c12af330c51468927df3e85ca23aaf9098ff4f8 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 17 Jun 2019 14:04:58 +0200 Subject: T1431: Fix vyos-http-server logging to journald. --- src/systemd/vyos-http-api.service | 6 ++++-- 1 file 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 -- cgit v1.2.3