#!/bin/sh
#
# Starts access-patrol.
#

start() {
	echo -n "Starting access-patrol: "
	start-stop-daemon -S -q --exec /usr/sbin/access-patrol -- -d
	echo "OK"
}
stop() {
	echo -n "Stopping access-patrol: "
	start-stop-daemon -K -q --exec /usr/sbin/access-patrol
	echo "OK"
}
restart() {
	stop
	start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
	restart
	;;
  *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?

