projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac6909
)
package/ubus: use new service wrapper
author
Nicolas Thill
<nico@openwrt.org>
Mon, 7 Nov 2011 22:59:01 +0000
(22:59 +0000)
committer
Nicolas Thill
<nico@openwrt.org>
Mon, 7 Nov 2011 22:59:01 +0000
(22:59 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28840
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/ubus/files/ubus.init
patch
|
blob
|
history
diff --git
a/package/ubus/files/ubus.init
b/package/ubus/files/ubus.init
index
7fcf106
..
70fe21c
100755
(executable)
--- 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() {
- s
tart-stop-daemon -S -b -m -p $PIDFILE -x
/sbin/ubusd
+ s
ervice_start
/sbin/ubusd
}
stop() {
- s
tart-stop-daemon -K -x /sbin/ubusd -p $PIDFILE
+ s
ervice_stop /sbin/ubusd
}