package/ubus: use new service wrapper
authorNicolas Thill <nico@openwrt.org>
Mon, 7 Nov 2011 22:59:01 +0000 (22:59 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 7 Nov 2011 22:59:01 +0000 (22:59 +0000)
SVN-Revision: 28840

package/ubus/files/ubus.init

index 7fcf106b972036316628e9fd6501f660b363fb91..70fe21c6aa34ad84fdc86fe91de16b35b70e71e0 100755 (executable)
@@ -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
 }