From 8635717aeb007fa80afec46ee1addfe1249c422d Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 7 Nov 2011 22:59:01 +0000 Subject: [PATCH] package/ubus: use new service wrapper git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28840 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/ubus/files/ubus.init | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package/ubus/files/ubus.init b/package/ubus/files/ubus.init index 7fcf106b9..70fe21c6a 100755 --- a/package/ubus/files/ubus.init +++ b/package/ubus/files/ubus.init @@ -1,11 +1,14 @@ #!/bin/sh /etc/rc.common + START=11 -PIDFILE=/var/run/ubusd.pid + +SERVICE_DAEMONIZE=1 +SERVICE_WRITE_PID=1 start() { - start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/ubusd + service_start /sbin/ubusd } stop() { - start-stop-daemon -K -x /sbin/ubusd -p $PIDFILE + service_stop /sbin/ubusd }