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 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/proftpd ]; then
36 daemon /usr/sbin/proftpd $PROFTPD_OPTS
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/proftpd
40 msg_already_running ProFTPD
45 if [ -f /var/lock/subsys/proftpd ]; then
48 rm -f /var/lock/subsys/proftpd /var/run/proftpd/* >/dev/null 2>&1
50 msg_not_running ProFTPD
55 if [ -f /var/lock/subsys/proftpd ]; then
59 msg_not_running ProFTPD
65 # See how we were called.
88 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"