3 # Init file for GSI-OpenSSH server daemon
5 # chkconfig: 2345 55 25
6 # description: GSI-OpenSSH server daemon
9 GLOBUS_LOCATION="@GLOBUS_LOCATION@"
10 export GLOBUS_LOCATION
12 . ${GLOBUS_LOCATION}/libexec/globus-script-initializer
13 . ${libexecdir}/globus-sh-tools.sh
15 PID_FILE=${localstatedir}/sshd.pid
19 if [ ! -f $PID_FILE ]; then
20 if [ ! -d $localstatedir ]; then
21 mkdir -p $localstatedir
23 echo "Starting up GSI-OpenSSH sshd server"
24 ${sbindir}/sshd > /dev/null 2>&1 &
25 if [ $? -ne 0 ] ; then
26 echo "Failed to start up GSI-OpenSSH sshd server"
29 echo "GSI-OpenSSH sshd is already running..."
34 if [ -f $PID_FILE ] ; then
38 kill -TERM $pid 2> /dev/null
49 echo "Usage: $0 (start|stop|restart)"