summaryrefslogtreecommitdiffstats
path: root/conf.d/usr/lib
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-08-20 17:38:53 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-08-20 17:38:53 +0200
commit3c40079d8360c15f0ce52a6c11a2bc2555177463 (patch)
tree3ffde3e845b9e39f60b6db4fba84e884b68c794c /conf.d/usr/lib
parent3f460335601df39a6b43488313ac9031c8d85fe8 (diff)
Fixed xds-server service startup in VM.
When xds-server service in startup in a VM (like Virtualbox Debian9 VM), the first start may fails with "Cannot determined local IP" error even if "After=network-online.target" statement is set in service file. So do both, set After and Restart on-failure statements. Change-Id: I27705dc8fbb0ac5547a1100e126392d372078e12 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'conf.d/usr/lib')
-rw-r--r--conf.d/usr/lib/systemd/user/xds-server.service6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf.d/usr/lib/systemd/user/xds-server.service b/conf.d/usr/lib/systemd/user/xds-server.service
index 0dac9d6..b76636e 100644
--- a/conf.d/usr/lib/systemd/user/xds-server.service
+++ b/conf.d/usr/lib/systemd/user/xds-server.service
@@ -1,9 +1,15 @@
[Unit]
Description=XDS Server
+Wants=network-online.target
+After=network-online.target
+StartLimitBurst=10
+StartLimitIntervalSec=400
[Service]
EnvironmentFile=-/etc/default/xds-server
ExecStart=/opt/AGL/bin/xds-server
+Restart=on-failure
+RestartSec=2
[Install]
WantedBy=default.target