#!/bin/sh # # chkconfig: 345 55 45 # description: sshd (secure shell daemon) is a server part of the ssh suite. # Ssh can be used for remote login, remote file copying, TCP port # forwarding etc. Ssh offers strong encryption and authentication. # # Source function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start) echo -n "Starting ProFTPd: " if (ps -aux | grep proftpd | grep -v grep) >& /dev/null; then echo "already running. Not started." else rm -f /home/ftp/dev/log ln /dev/log /home/ftp/dev/log /usr/local/sbin/proftpd echo proftpd fi ;; stop) echo -n "Stopping ProFTPd: " killproc proftpd echo ;; restart) $0 stop $0 start ;; status) status proftpd ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 esac exit 0