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

case "$1" in
start)
	if [ -x %PREFIX%/drweb/drwebd ]; then
		rm -f %PREFIX%/drweb/run/drwebd.sock;
		%PREFIX%/drweb/drwebd -ini:%PREFIX%/drweb/drweb32.ini && \
		    echo -n ' drwebd';
	fi
	;;
stop)
	if [ -r %PREFIX%/drweb/run/drwebd.pid ]; then
		kill `cat  %PREFIX%/drweb/run/drwebd.pid` >/dev/null 2>& 1;
		echo -n ' drwebd';
	fi
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	;;
esac

exit 0