#!/bin/sh

case $1 in
start)
	if [ -f /usr/local/etc/adzapper.conf ]; then
		/usr/local/sbin/adzapper \
			1>>/var/log/adzapper.log \
			2>>/var/log/adzapper.log &
		test $? -eq 0 && echo -n ' adzapper'
	fi
	;;
stop)
	killall adzapper && echo -n ' adzapper'
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	exit 64
	;;
esac

exit 0
