Package: xrdp / 0.9.8-2~bpo9+1

systemd.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Subject: Fixes to systemd service files
From: Dominik George <nik@naturalnet.de>
Forwarded: https://github.com/neutrinolabs/xrdp/pull/646
--- a/instfiles/xrdp-sesman.service.in
+++ b/instfiles/xrdp-sesman.service.in
@@ -7,7 +7,8 @@ BindsTo=xrdp.service
 
 [Service]
 Type=forking
-PIDFile=@localstatedir@/run/xrdp-sesman.pid
+PIDFile=@localstatedir@/run/xrdp/xrdp-sesman.pid
+RuntimeDirectory=xrdp
 EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
 EnvironmentFile=-@sysconfdir@/default/xrdp
 ExecStart=@sbindir@/xrdp-sesman $SESMAN_OPTIONS
--- a/instfiles/xrdp.service.in
+++ b/instfiles/xrdp.service.in
@@ -6,9 +6,14 @@ After=network.target xrdp-sesman.service
 
 [Service]
 Type=forking
-PIDFile=@localstatedir@/run/xrdp.pid
+PIDFile=@localstatedir@/run/xrdp/xrdp.pid
+RuntimeDirectory=xrdp
 EnvironmentFile=-@sysconfdir@/sysconfig/xrdp
 EnvironmentFile=-@sysconfdir@/default/xrdp
+User=xrdp
+Group=xrdp
+PermissionsStartOnly=true
+ExecStartPre=/bin/sh /usr/share/xrdp/socksetup
 ExecStart=@sbindir@/xrdp $XRDP_OPTIONS
 ExecStop=@sbindir@/xrdp $XRDP_OPTIONS --kill