mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
package/ubus: use new service wrapper
SVN-Revision: 28840
This commit is contained in:
parent
7a176742bb
commit
d7409c85b5
@ -1,11 +1,14 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
START=11
|
START=11
|
||||||
PIDFILE=/var/run/ubusd.pid
|
|
||||||
|
SERVICE_DAEMONIZE=1
|
||||||
|
SERVICE_WRITE_PID=1
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/ubusd
|
service_start /sbin/ubusd
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
start-stop-daemon -K -x /sbin/ubusd -p $PIDFILE
|
service_stop /sbin/ubusd
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user