From 1981c3be16f4db2394f6cf505650cb40b4ab9af1 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 20 Oct 2011 15:01:12 +0000 Subject: ubusd: add an init script git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28496 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/ubus/files/ubus.init | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 package/ubus/files/ubus.init (limited to 'package/ubus/files') diff --git a/package/ubus/files/ubus.init b/package/ubus/files/ubus.init new file mode 100755 index 000000000..7fcf106b9 --- /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 +} -- cgit v1.2.3