aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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