#! /bin/sh
#         By Ace Yang .
case "$1" in
  start)
	echo -n "Starting amgrd: "
	start-stop-daemon --start --quiet --background --exec /usr/bin/amgrd
	echo "done"
	;;
  stop)
	echo -n "Stopping amgrd: "
	start-stop-daemon --stop --quiet --exec /usr/bin/amgrd
	echo "done"
	;;
  *)
	echo "Usage: amgrd { start | stop }" >&2
	exit 1
	;;
esac

exit 0
