#! /sbin/sh #Tag 0x00000f00 # Start or stop the Proftpd ftp server taken from apache/bsd lpr script # "$Revision: 1.5 $" # Lachlan Cranswick hack from bsd lpr script # (possibly dodgy) - version 1.00 22 July 1998 #Updated from 1.2.6 to Apache 1.3.3 10th October 1998 #Use to create a proftpd script 24th September 1999 IS_ON=/etc/chkconfig if $IS_ON verbose; then ECHO=echo else # For a quiet startup and shutdown ECHO=: fi case "$1" in 'start') if $IS_ON proftpd; then $ECHO "Starting ProFTPD FTP server \c" /sbin/killall proftpd if test -x /usr/local/sbin/proftpd; then /usr/local/sbin/proftpd fi #old bsdlpr stuff if test -x /usr/local/etc/httpd/lpd; then #old bsdlpr stuf /usr/etc/lpd > /dev/null 2>&1 #old bsdlpr stuff fi $ECHO "." fi ;; 'stop') $ECHO "Stopping ProFTPD FTP server \c" /sbin/killall proftpd $ECHO "." ;; *) echo "usage: $0 {start|stop}" ;; esac