]> andersk Git - gssapi-openssh.git/blobdiff - setup/SXXsshd.in
o More comment changes.
[gssapi-openssh.git] / setup / SXXsshd.in
index 408ab41333b2d5e4b5d4a748a93f2e6339d46b76..f2dbc1a1e9ab4eff2bf36c69115e8bcb6257bf20 100644 (file)
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
-# Init file for OpenSSH server daemon
+# Init file for GSI-OpenSSH server daemon
 #
 # chkconfig: 2345 55 25
-# description: OpenSSH server daemon
+# description: GSI-OpenSSH server daemon
 #
 
 GLOBUS_LOCATION="@GLOBUS_LOCATION@"
@@ -14,6 +14,13 @@ export GLOBUS_LOCATION
 
 PID_FILE=${localstatedir}/sshd.pid
 
+#
+# SSHD arguments can be added here within the following
+# set of double quotes.
+#
+
+SSHD_ARGS=""
+
 case "$1" in
     start)
         if [ ! -f $PID_FILE ]; then
@@ -21,7 +28,7 @@ case "$1" in
                 mkdir -p $localstatedir
             fi
             echo "Starting up GSI-OpenSSH sshd server"
-            ${sbindir}/sshd > /dev/null 2>&1 &
+            ${sbindir}/sshd $SSHD_ARGS > /dev/null 2>&1 &
             if [ $? -ne 0 ] ; then
                 echo "Failed to start up GSI-OpenSSH sshd server"
             fi
@@ -40,8 +47,13 @@ case "$1" in
         fi
         ;;
 
-  *)
-        echo "Usage: $0 ( start | stop )"
+    restart)
+        $0 stop
+        $0 start
+        ;;
+
+    *)
+        echo "Usage: $0 (start|stop|restart)"
         exit 1
 esac
 
This page took 0.028296 seconds and 4 git commands to generate.