|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# this needs to be a bash script, the first line needs to be #!/bin/bash
|
|
|
|
|
# xrdp control script
|
|
|
|
|
# same as xrdp_control.sh except the XRDP_DIR is /usr/lib/xrdp
|
|
|
|
|
# Written : 1-13-2006 - Mark Balliet - posicat@pobox.com
|
|
|
|
|
# maintaned by Jay Sorg
|
|
|
|
|
# chkconfig: 2345 11 89
|
|
|
|
|
# description: starts xrdp
|
|
|
|
|
|
|
|
|
@ -40,12 +42,18 @@ check_up () {
|
|
|
|
|
# Cleanup : If sesman isn't running, but the pid exists, erase it.
|
|
|
|
|
if [ "$sesup" == "" ]
|
|
|
|
|
then
|
|
|
|
|
if [ -e /var/run/sesman.pid ] ; then rm /var/run/sesman.pid ; fi
|
|
|
|
|
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
|
|
|
|
|
if [ -e /var/run/xrdp.pid ]
|
|
|
|
|
then
|
|
|
|
|
rm /var/run/xrdp.pid
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|