aboutsummaryrefslogtreecommitdiffstats
path: root/package/ubus/files/ubus.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/ubus/files/ubus.init')
-rwxr-xr-xpackage/ubus/files/ubus.init11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/ubus/files/ubus.init b/package/ubus/files/ubus.init
new file mode 100755
index 0000000000..7fcf106b97
--- /dev/null
+++ b/package/ubus/files/ubus.init
@@ -0,0 +1,11 @@
+#!/bin/sh /etc/rc.common
+START=11
+PIDFILE=/var/run/ubusd.pid
+
+start() {
+ start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/ubusd
+}
+
+stop() {
+ start-stop-daemon -K -x /sbin/ubusd -p $PIDFILE
+}