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_no "${NETWORKING}"; then
20 # nls "ERROR: Networking is down. %s can't be run." <service>
21 msg_Network_Down pure-ftpd
25 # See how we were called.
28 # Check if the service is already running?
29 if [ ! -f /var/lock/subsys/pure-ftpd ]; then
30 msg_starting pure-ftpd
31 rm -f /var/run/pure-ftpd/client*
32 daemon pure-config.pl /etc/ftpd/pure-ftpd.conf --daemonize
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pure-ftpd
36 msg_Already_Running pure-ftpd
42 if [ -f /var/lock/subsys/pure-ftpd ]; then
43 msg_stopping pure-ftpd
45 rm -f /var/lock/subsys/pure-ftpd > /dev/null 2>&1
47 msg_Not_Running pure-ftpd
54 if [ $RETVAL -eq 0 ]; then
64 msg_Usage "$0 {start|stop|restart|status}"