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

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