#!/bin/sh # # Startup script for OpenSSH Daemon # # chkconfig: 345 81 15 # description: OpenSSH # processname: sshd # config: /usr/local/openssh/etc/sshd_config # . /etc/rc.d/init.d/functions # # Start/stop processes required for sshd # case "$1" in start) echo -n "Starting sshd: " exec /usr/local/openssh/sbin/sshd echo ;; restart) $0 stop $0 start ;; stop) echo -n "Shutting down sshd: " killproc sshd echo ;; *) echo "Usage: $0 {start|restart|stop}" exit 1 esac exit 0