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 # nls "ERROR: Networking is down. %s can't be run." <service>
26 msg_network_down proftpd
34 # See how we were called.
37 # Check if the service is already running?
38 if [ ! -f /var/lock/subsys/proftpd ]; then
40 daemon proftpd $PROFTPD_OPTS
42 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/proftpd
44 msg_already_running ProFTPD
49 if [ -f /var/lock/subsys/proftpd ]; then
52 rm -f /var/lock/subsys/proftpd /var/run/proftpd* > /dev/null 2>&1
54 msg_not_running ProFTPD
67 msg_usage "$0 {start|stop|restart|force-reload|status}"