aboutsummaryrefslogtreecommitdiffstats
path: root/package/ubus/files
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2011-11-07 22:59:01 +0000
committerNicolas Thill <nico@openwrt.org>2011-11-07 22:59:01 +0000
commit5edab41da261cc52216b56ea4b3cea57dea9a3d3 (patch)
treeb42a60bf29ba5fad0468d7521fdf37fd893fe6cd /package/ubus/files
parenteac69094657effe3412f8f264b81a25df5afbc94 (diff)
downloadupstream-5edab41da261cc52216b56ea4b3cea57dea9a3d3.tar.gz
upstream-5edab41da261cc52216b56ea4b3cea57dea9a3d3.tar.bz2
upstream-5edab41da261cc52216b56ea4b3cea57dea9a3d3.zip
package/ubus: use new service wrapper
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28840 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ubus/files')
-rwxr-xr-xpackage/ubus/files/ubus.init9
1 files changed, 6 insertions, 3 deletions
diff --git a/package/ubus/files/ubus.init b/package/ubus/files/ubus.init
index 7fcf106b97..70fe21c6aa 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
}