aboutsummaryrefslogtreecommitdiffstats
path: root/package/ubus/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-20 15:01:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-10-20 15:01:12 +0000
commit0798d4a5c7035bb545dd94527d04fa12b901db15 (patch)
tree2b9559c2e79f7a93e29bbbeaf1f4a4412390a3d1 /package/ubus/files
parentc2b5767572c7cece21f7739e416d59458278b7d8 (diff)
downloadupstream-0798d4a5c7035bb545dd94527d04fa12b901db15.tar.gz
upstream-0798d4a5c7035bb545dd94527d04fa12b901db15.tar.bz2
upstream-0798d4a5c7035bb545dd94527d04fa12b901db15.zip
ubusd: add an init script
SVN-Revision: 28496
Diffstat (limited to 'package/ubus/files')
-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
+}