#!/bin/sh # # /etc/rc.d/pure-ftpd: start/stop pure-ftpd daemon # CONF=/etc/pure-ftpd.conf ARGS=`sed -e '/^ *$/d' -e '/^#/d' $CONF` case $1 in start) /usr/sbin/pure-ftpd $ARGS ;; stop) killall -q /usr/sbin/pure-ftpd ;; restart) $0 stop sleep 2 $0 start ;; *) echo "usage: $0 [start|stop|restart]" ;; esac # End of file