3 # pureftpd PureFTPD server
6 # description: PureFTPD is fast, production-quality, standard-conformant FTP server
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
16 [ -f /etc/sysconfig/pure-ftpd ] && . /etc/sysconfig/pure-ftpd
18 # Check that networking is up.
19 if is_yes "${NETWORKING}"; then
20 if [ ! -f /var/lock/subsys/network ]; then
21 # nls "ERROR: Networking is down. %s can't be run." <service>
22 msg_network_down pure-ftpd
30 # See how we were called.
33 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/pure-ftpd ]; then
35 msg_starting pure-ftpd
36 rm -f /var/run/pure-ftpd/client*
37 daemon pure-config.pl /etc/ftpd/pureftpd.conf --daemonize
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pure-ftpd
41 msg_already_running pure-ftpd
47 if [ -f /var/lock/subsys/pure-ftpd ]; then
48 msg_stopping pure-ftpd
50 rm -f /var/lock/subsys/pure-ftpd > /dev/null 2>&1
52 msg_not_running pure-ftpd
59 if [ $RETVAL -eq 0 ]; then
69 msg_usage "$0 {start|stop|restart|reload|status}"