ssh-2.0.13 + inetd

Panayotis Vryonis vrypan at hellug.gr
Thu Mar 16 11:42:06 EET 2000


>

Kai mias kai to eftiaksa, oriste kai to sxetiko
/etc/rc.d/inet.d/sshd2 gia RedHat. (Douleuei
kai me to chkconfig.)
Panayotis.

------------ cut here ------------

#! /bin/sh
#
# sshd2 Start/Stop secure shell server
#       Mar 16, 2000 by <vrypan at hellug.gr>
#
# chkconfig: 345 35 65
# description:  The sshd2 server provides the SecureShell server for ssh2
# processname: sshd2
# pidfile: /var/run/sshd2.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
        exit 0
fi

[ -x /usr/local/sbin/sshd2 ] || exit 0

RETVAL=0
export PATH=$PATH:/usr/local/sbin

# See how we were called.
case "$1" in
  start)
        echo -n "Starting sshd2: "
        daemon sshd2
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd2
        ;;
  stop)
        echo -n "Stopping sshd2 services: "
        killproc sshd2
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd2
        ;;
  status)
        status sshd2
        RETVAL=$?
        ;;
  restart)
        $0 stop
        $0 start
        RETVAL=$?
        ;;
  *)
        echo "Usage: sshd2 {start|stop|status|restart}"
        exit 1
esac

exit $RETVAL
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/lgu.html
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list