From 21e11de15762a7cfb65083c2b9a19a197587dae8 Mon Sep 17 00:00:00 2001 From: Schen Date: Wed, 22 May 2024 19:02:14 +0900 Subject: [PATCH] Fix a systemd dependency ("network-online.target") - Fix a problem that the xrdp.service fail to auto-start when instructed to listen on a specific interface - By changing the "network.target" systemd dependency to "network-online.target" - The "network-online.target", in short, means at least one network interface has finished IP level setup. - The previously used "network.target" is vague and does not provide such guarantee (ref: man systemd.special(7)). - Which often cause "xrdp.service" fail to auto-start when the service is configured to listen on a specific interface (e.g. in xrdp.ini, "port=tcp://192.168.0.1:3389"). Because the interface may have not finish setting up its IP, when "xrdp.service" starts. --- instfiles/xrdp.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instfiles/xrdp.service.in b/instfiles/xrdp.service.in index 92ce035a..52216cc8 100644 --- a/instfiles/xrdp.service.in +++ b/instfiles/xrdp.service.in @@ -2,7 +2,7 @@ Description=xrdp daemon Documentation=man:xrdp(8) man:xrdp.ini(5) Requires=xrdp-sesman.service -After=network.target xrdp-sesman.service +After=network-online.target xrdp-sesman.service [Service] Type=exec