blob: 15bd80d65ed4c4793c16e9f98f8d6924dbdd5b4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{% set vrf_command = 'ip vrf exec ' + vrf + ' ' if vrf is 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
|