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_no "${NETWORKING}"; then
24 # nls "ERROR: Networking is down. %s can't be run." <service>
25 msg_network_down proftpd
29 # See how we were called.
32 # Check if the service is already running?
33 if [ ! -f /var/lock/subsys/proftpd ]; then
35 daemon proftpd $PROFTPD_OPTS
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/proftpd
39 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
63 msg_usage "$0 {start|stop|restart|status}"