summaryrefslogtreecommitdiffstats
path: root/instfiles
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-02-12 19:29:16 +0000
committerjsorg71 <jsorg71>2006-02-12 19:29:16 +0000
commitda4df86fc0afb3761a39a7f2bd18275f060e8b75 (patch)
treeee4bee022cdfea92f18ff52a72ed57c0624d3720 /instfiles
parent37c764bdbb6f59c0f8809f9ad9feb820b28777cc (diff)
downloadxrdp-proprietary-da4df86fc0afb3761a39a7f2bd18275f060e8b75.tar.gz
xrdp-proprietary-da4df86fc0afb3761a39a7f2bd18275f060e8b75.zip
xrdp.pid cleanup too
Diffstat (limited to 'instfiles')
-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