From 5ec208ed9ee060f7c1a7707dc2369c83657196e8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 1 May 2022 20:46:44 +0200 Subject: http: api: T4353: fix Jinja2 linting errors --- data/templates/https/vyos-http-api.service.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 data/templates/https/vyos-http-api.service.j2 (limited to 'data/templates/https/vyos-http-api.service.j2') diff --git a/data/templates/https/vyos-http-api.service.j2 b/data/templates/https/vyos-http-api.service.j2 new file mode 100644 index 000000000..fb424e06c --- /dev/null +++ b/data/templates/https/vyos-http-api.service.j2 @@ -0,0 +1,22 @@ +{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %} +[Unit] +Description=VyOS HTTP API service +After=vyos-router.service +Requires=vyos-router.service + +[Service] +ExecStart={{ vrf_command }}/usr/libexec/vyos/services/vyos-http-api-server +Type=idle + +SyslogIdentifier=vyos-http-api +SyslogFacility=daemon + +Restart=on-failure + +# Does't work but leave it here +User=root +Group=vyattacfg + +[Install] +WantedBy=vyos.target + -- cgit v1.2.3