summaryrefslogtreecommitdiff
path: root/net-mgmt/arpwatch-devel/files/arpwatch.sh
blob: f0c8a797cb54b29d4bb8be7d761bdce38f1b7d10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

case $1 in
start)
	if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
		/usr/local/sbin/arpwatch && echo -n ' arpwatch'
	fi
	;;
stop)
	killall arpwatch && echo -n ' arpwatch'
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	exit 64
	;;
esac

exit 0