From 0220fa46c386b32f54d3fa55a07bcbb5d523e627 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:34:04 +0000 Subject: [PATCH] Add commented out KillMode=process to xrdp-service The KillMode of process allows an xrdp connection to survive a reatart of the xrdp process. This is of minimal benefit, as a user can always simply reconnect - the session will survive the restart. The downside is that xrdp will not benefit from any security fixes, and may well end up out-of-sync with sesman. --- instfiles/xrdp.service.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/instfiles/xrdp.service.in b/instfiles/xrdp.service.in index 52216cc8..72bc2e99 100644 --- a/instfiles/xrdp.service.in +++ b/instfiles/xrdp.service.in @@ -11,6 +11,13 @@ EnvironmentFile=-@sysconfdir@/default/xrdp ExecStart=@sbindir@/xrdp $XRDP_OPTIONS --nodaemon SystemCallArchitectures=native SystemCallFilter=@system-service +# Uncomment the following line if you wish xrdp connections to survive +# an xrdp restart. +# +# This is not recommended, as the xrdp and xrdp-sesman processes can +# end up with API differences if the restart was caused by an upgrade. It +# may however be useful for some use cases. +#KillMode=process [Install] WantedBy=multi-user.target