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 -a "$1" != stop -a "$1" != status ]; 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
46 if [ -f /var/lock/subsys/pure-ftpd ]; then
47 msg_stopping pure-ftpd
49 rm -f /var/lock/subsys/pure-ftpd > /dev/null 2>&1
51 msg_not_running pure-ftpd
57 if [ $RETVAL -eq 0 ]; then
67 msg_usage "$0 {start|stop|restart|force-reload|status}"