summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-http-api.service
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-06-16 21:26:38 +0200
committerDaniil Baturin <daniil@baturin.org>2019-06-16 21:26:38 +0200
commitfc2cc0f9b660408d5fc0cffcaffc33bfbc8ca5f2 (patch)
tree3e560d1d3ab7d587b8fc53147c6985972b3bea96 /src/systemd/vyos-http-api.service
parent9bf7d03ff7342e7f87710df6bcc15beceed9582c (diff)
downloadvyos-1x-fc2cc0f9b660408d5fc0cffcaffc33bfbc8ca5f2.tar.gz
vyos-1x-fc2cc0f9b660408d5fc0cffcaffc33bfbc8ca5f2.zip
T1431: initial implementation of the HTTP API.
Diffstat (limited to 'src/systemd/vyos-http-api.service')
-rw-r--r--src/systemd/vyos-http-api.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/systemd/vyos-http-api.service b/src/systemd/vyos-http-api.service
new file mode 100644
index 000000000..f0665e3d5
--- /dev/null
+++ b/src/systemd/vyos-http-api.service
@@ -0,0 +1,16 @@
+[Unit]
+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
+KillMode=process
+
+# Does't work but leave it here
+User=root
+Group=vyattacfg
+
+[Install]
+WantedBy=multi-user.target
+