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
18 # SSHD arguments can be added here within the following
19 # set of double quotes.
26 if [ ! -f $PID_FILE ]; then
27 if [ ! -d $localstatedir ]; then
28 mkdir -p $localstatedir
30 echo "Starting up GSI-OpenSSH sshd server"
31 ${sbindir}/sshd $SSHD_ARGS > /dev/null 2>&1 &
32 if [ $? -ne 0 ] ; then
33 echo "Failed to start up GSI-OpenSSH sshd server"
36 echo "GSI-OpenSSH sshd is already running..."
41 if [ -f $PID_FILE ] ; then
45 kill -TERM $pid 2> /dev/null
56 echo "Usage: $0 (start|stop|restart)"