#!/bin/sh
#
# Startup script for Proftpd
#
# chkconfig: 345 85 15
# description: ProFTPD is a highly configurable ftp daemon for unix
#              and unix-like operating systems HTML files and CGI.
# processname: proftpd
# config: /etc/proftp.conf


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

# See how we were called.
case "$1" in
  start)
	echo -n "Starting proftpd: "
	daemon proftpd
	echo
	touch /var/lock/subsys/proftpd
	;;
  stop)
	echo -n "Shutting down http: "
	killproc proftpd
	echo
	rm -f /var/lock/subsys/proftpd
	;;
  status)
	status proftpd
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: $0 {start|stop|restart|status}"
	exit 1
esac

exit 0
