summaryrefslogtreecommitdiff
path: root/www/adzapper/files/rc.adzapper.sh
blob: b7949ad8646accf2fa9f3f9f25afbf75ce003126 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

case $1 in
start)
	if [ -f __PREFIX__/etc/adzapper.conf ]; then
		__PREFIX__/sbin/adzapper &
		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