3 # proftpd ProFTPD ftp server
6 # description: ProFTPD is a highly configurable ftp daemon for unix and unix-like \
9 # pidfile: /var/run/proftpd.pid
10 # config: /etc/ftpd/proftpd.conf
13 # Source function library
14 . /etc/rc.d/init.d/functions
17 . /etc/sysconfig/network
20 [ -f /etc/sysconfig/proftpd ] && . /etc/sysconfig/proftpd
22 # Check that networking is up.
23 if is_yes "${NETWORKING}"; then
24 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
25 msg_network_down proftpd
33 # See how we were called.
36 # Check if the service is already running?
37 if [ ! -f /var/lock/subsys/proftpd ]; then
39 daemon proftpd $PROFTPD_OPTS
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/proftpd
43 msg_already_running ProFTPD
48 if [ -f /var/lock/subsys/proftpd ]; then
51 rm -f /var/lock/subsys/proftpd /var/run/proftpd* > /dev/null 2>&1
53 msg_not_running ProFTPD
66 msg_usage "$0 {start|stop|restart|force-reload|status}"