#!/bin/sh

case $1 in
start) 
	[ -x /usr/local${exec_prefix}/libexec/cdpd ] && /usr/local${exec_prefix}/libexec/cdpd -a;
	echo ' cdpd';
;;
stop)
	killall cdpd
;;
status)
	ps ax| grep cdpd
;;
*)
	echo "Usage: `basename $0` (start|stop|status)" >&2 ;
	exit 64;
;;
esac 
