Bug#840132: xrdp.service modification
Paul van Tilburg
paulvt at debian.org
Tue Feb 28 14:07:39 UTC 2017
Hi!
I have been struggling with the same issues. Because we want to offer a
GNOME desktop, NetworkManager is installed. The way it configures the
network might reveal an issue in xrdp itself.
I have updated the xrdp.service unit locally and that seems to fix it
(see attached file).
The changes are:
--- /lib/systemd/system/xrdp.service 2017-01-25 18:10:11.000000000 +0100
+++ /etc/systemd/system/xrdp.service 2017-02-28 15:07:01.130060204 +0100
@@ -1,8 +1,7 @@
[Unit]
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
[Service]
Type=forking
The after requirement on network-online.target is not how it should be,
but it seems necessary for xrdp to start. The require on xrdp-sesman is
not necessary at all (given that xrdp-sesman.service binds to
xrdp.service), so I dropped that.
Paul
--
Using the Power of Debian GNU/Linux | E-mail: paulvt at debian.org
Jabber/XMPP: paul at luon.net | GnuPG key ID: 0x50064181
-------------- next part --------------
Description=xrdp (X Remote Desktop Protocol) protocol server
Documentation=man:xrdp(8) man:xrdp.ini(5)
After=network-online.target
[Service]
Type=forking
PIDFile=/run/xrdp/xrdp.pid
EnvironmentFile=-/etc/sysconfig/xrdp
EnvironmentFile=-/etc/default/xrdp
User=xrdp
Group=xrdp
PermissionsStartOnly=true
ExecStartPre=/bin/sh /usr/share/xrdp/socksetup
ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS
ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill
ExecStopPost=/bin/rm -rf /var/run/xrdp/sockdir
[Install]
WantedBy=multi-user.target
More information about the pkg-remote-team
mailing list