Reorganization
[umurmur.git] / openwrt / files / umurmur.init
diff --git a/openwrt/files/umurmur.init b/openwrt/files/umurmur.init
new file mode 100644 (file)
index 0000000..617110a
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006-2008 OpenWrt.org
+
+START=90
+
+PIDFILE="/var/run/umurmurd.pid"
+
+start() {
+        stop
+        /usr/bin/umurmurd -r -p $PIDFILE
+}
+
+stop() {
+        [ -f "$PIDFILE" ] && kill $(cat "$PIDFILE") 2>/dev/null >/dev/null
+}
\ No newline at end of file