3 GLOBUS_LOCATION="@GLOBUS_LOCATION@"
6 . ${GLOBUS_LOCATION}/libexec/globus-script-initializer
7 . ${libexecdir}/globus-sh-tools.sh
9 PID_FILE=${localstatedir}/sshd.pid
13 if [ ! -f $PID_FILE ]; then
14 if [ ! -d $localstatedir ]; then
15 mkdir -p $localstatedir
17 echo "Starting up GSI-OpenSSH sshd server"
18 ${sbindir}/sshd > /dev/null 2>&1 &
19 if [ $? -ne 0 ] ; then
20 echo "Failed to start up GSI-OpenSSH sshd server"
23 echo "GSI-OpenSSH sshd is already running..."
28 if [ -f $PID_FILE ] ; then
32 kill -TERM $pid 2> /dev/null
38 echo "Usage: $0 ( start | stop )"