summaryrefslogtreecommitdiff
path: root/security/drweb/files/drwebd.sh
blob: bfffe8b64255d2c8528a4b5c643a5467c5a5cbf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#
# $FreeBSD$

drwebd='!!PREFIX!!/drwebd'

case "$1" in
start)
	if [ -x $drwebd ]; then
	    echo -n ' drwebd'
	    $drwebd
	    /bin/chmod 660 /var/run/drwebd.sock
	fi
	;;
stop)
	/usr/bin/killall drwebd
	/bin/rm -f /var/run/drwebd.sock
	echo -n ' drwebd'
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	exit 64
	;;
esac

exit 0