#!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later depend() { need net } checkconfig() { if [ ! -e /etc/pure-ftpd/pure-ftpd.conf] ; then eerror "You need an /etc/pure-ftpd/pure-ftpd.conf to run pure-ftp" return 1 fi } start() { checkconfig || return 1 ebegin "Starting pure-ftpd" start-stop-daemon --quiet --start --exec /usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf eend $? } stop() { ebegin "Stopping pure-ftpd" start-stop-daemon --quiet --stop --pid /var/run/pure-ftpd.pid eend $? }