summaryrefslogtreecommitdiff
path: root/security/drwebd/files/drweb-0.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--security/drwebd/files/drweb-0.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/security/drwebd/files/drweb-0.sh b/security/drwebd/files/drweb-0.sh
new file mode 100644
index 000000000000..e38ed7cf8018
--- /dev/null
+++ b/security/drwebd/files/drweb-0.sh
@@ -0,0 +1,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