summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstfiles/xrdp_control.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/instfiles/xrdp_control.sh b/instfiles/xrdp_control.sh
index 4df4b06b..f1b1f7f2 100755
--- a/instfiles/xrdp_control.sh
+++ b/instfiles/xrdp_control.sh
@@ -39,6 +39,11 @@ check_up () {
then
if [ -e /var/run/sesman.pid ] ; then rm /var/run/sesman.pid ; fi
fi
+ # Cleanup : If xrdp isn't running, but the pid exists, erase it.
+ if [ "$xrdpup" == "" ]
+ then
+ if [ -e /var/run/xrdp.pid ] ; then rm /var/run/xrdp.pid ; fi
+ fi
}
case "$1" in