Thanks! That page together with: http://www.bsdforum.org/forums/showt...?threadid=5449
made me realize how it works.
case "$1" in
/usr/local/sbin/pure-ftpd -B -g /var/run/pure-ftpd.pid && echo -n ' pure-ftpd'
kill `cat /var/run/pure-ftpd.pid` && echo -n ' pure-ftpd'
echo "$0 start | stop"
That's how my script looks like now, and it works perfectly. Don't have any idea what esac does but I guess it's essential in some way.