From b82b6341103d28e920bab17cb9f8a154e4cc1f7a Mon Sep 17 00:00:00 2001 From: thespad Date: Fri, 14 Jun 2024 22:33:31 +0100 Subject: [PATCH 1/2] Check notify endpoint to socket --- root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run b/root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run index ec37dee..1100766 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run @@ -4,6 +4,6 @@ fdmove -c 2 1 # Notify service manager when xrdp is up -s6-notifyoncheck -w 500 -c "nc -z localhost 3350" +s6-notifyoncheck -w 500 -c "nc -zU /run/xrdp/sesman.socket" /usr/sbin/xrdp-sesman --nodaemon From 416db2ab4a6b0a1c28f79299ca8d73943ebd149f Mon Sep 17 00:00:00 2001 From: thespad Date: Fri, 14 Jun 2024 22:53:53 +0100 Subject: [PATCH 2/2] Redirect error output to null --- root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run b/root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run index 1100766..9500acd 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run @@ -4,6 +4,6 @@ fdmove -c 2 1 # Notify service manager when xrdp is up -s6-notifyoncheck -w 500 -c "nc -zU /run/xrdp/sesman.socket" +s6-notifyoncheck -w 500 -c "redirfd -w 2 /dev/null nc -zU /run/xrdp/sesman.socket" /usr/sbin/xrdp-sesman --nodaemon