blob: ba5df598434c27dc5aa867ef1419e8d50ac92039 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[Unit]
Description=VyOS HTTP API service
After=auditd.service systemd-user-sessions.service time-sync.target vyos-router.service
Requires=vyos-router.service
[Service]
ExecStartPre=/usr/libexec/vyos/init/vyos-config
ExecStart=/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]
# Installing in a earlier target leaves ExecStartPre waiting
WantedBy=getty.target
|