From cc58da29871c8f355209d562fdfeb07fd8b47582 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Sun, 24 Sep 2023 15:35:13 +0800 Subject: [PATCH] Fix systemd services - a server should be after network.target instead of network-online.target[1] - a client should also pull in network-online.target[1] - the manual mentions StartLimitIntervalSec=0 but not StartLimitBurst=0[2] [1]: man systemd.special [2]: man systemd.unit --- systemd/rkvm-client.service | 3 ++- systemd/rkvm-server.service | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/systemd/rkvm-client.service b/systemd/rkvm-client.service index c3633c6..f39ac5f 100644 --- a/systemd/rkvm-client.service +++ b/systemd/rkvm-client.service @@ -1,8 +1,9 @@ [Unit] Description=rkvm client +Wants=network-online.target After=network-online.target # This prevents systemd from giving up trying to restart the service. -StartLimitBurst=0 +StartLimitIntervalSec=0 [Service] ExecStart=/usr/bin/rkvm-client /etc/rkvm/client.toml diff --git a/systemd/rkvm-server.service b/systemd/rkvm-server.service index ef3810f..6098d3d 100644 --- a/systemd/rkvm-server.service +++ b/systemd/rkvm-server.service @@ -1,6 +1,6 @@ [Unit] Description=rkvm server -After=network-online.target +After=network.target [Service] ExecStart=/usr/bin/rkvm-server /etc/rkvm/server.toml