X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/1981c3be16f4db2394f6cf505650cb40b4ab9af1..b8d5619ca8ac95b4a0365a7adcce4b0d9c7305ce:/package/ubus/files/ubus.init diff --git a/package/ubus/files/ubus.init b/package/ubus/files/ubus.init index 7fcf106b9..70fe21c6a 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 }