#!/bin/sh

# start
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
  /usr/local/sbin/pure-ftpd -O stats:/var/log/pureftpd.log -A -E -l mysql:/usr/local/etc/pureftpd-mysql.conf -l unix -w -B
# stop
elif [ "x$1" = "xstop" ]; then
  killall pure-ftpd
fi


