mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 05:11:46 +02:00
package/ubus: use new service wrapper
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28840 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
390d5ffd22
commit
8635717aeb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user