From 3c40079d8360c15f0ce52a6c11a2bc2555177463 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Mon, 20 Aug 2018 17:38:53 +0200 Subject: 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 --- conf.d/usr/lib/systemd/user/xds-server.service | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'conf.d/usr/lib/systemd/user/xds-server.service') 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 -- cgit 1.2.3-korg