summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-http-api.service
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-06-17 19:58:29 +0200
committerDaniil Baturin <daniil@baturin.org>2019-06-17 19:58:29 +0200
commit62822413b20a82c4738897c16d3120c04fbf27d6 (patch)
treebc4d06ebd858448a05c7f434e86455180b0b08d9 /src/systemd/vyos-http-api.service
parentd6d42f5a2729b5efb839de48b2ebd52b792dfa84 (diff)
downloadvyos-1x-62822413b20a82c4738897c16d3120c04fbf27d6.tar.gz
vyos-1x-62822413b20a82c4738897c16d3120c04fbf27d6.zip
[HTTP API] T1431: make systemd restart the HTTP API service on failure.
Diffstat (limited to 'src/systemd/vyos-http-api.service')
-rw-r--r--src/systemd/vyos-http-api.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/vyos-http-api.service b/src/systemd/vyos-http-api.service
index 53322a84f..509af4816 100644
--- a/src/systemd/vyos-http-api.service
+++ b/src/systemd/vyos-http-api.service
@@ -9,6 +9,8 @@ KillMode=process
SyslogIdentifier=vyos-http-api
SyslogFacility=daemon
+Restart=on-failure
+
# Does't work but leave it here
User=root
Group=vyattacfg