diff options
author | Nicolas Thill <nico@openwrt.org> | 2011-11-07 22:59:01 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2011-11-07 22:59:01 +0000 |
commit | d7409c85b50cc51c88607f8f9fd362fd7d55b0bb (patch) | |
tree | b3b26f9ec849deb95ef917f376c4f65b5047b6fc /package/ubus/files/ubus.init | |
parent | 7a176742bb66cc1e7ed712dbb1ee75385c900287 (diff) | |
download | upstream-d7409c85b50cc51c88607f8f9fd362fd7d55b0bb.tar.gz upstream-d7409c85b50cc51c88607f8f9fd362fd7d55b0bb.tar.bz2 upstream-d7409c85b50cc51c88607f8f9fd362fd7d55b0bb.zip |
package/ubus: use new service wrapper
SVN-Revision: 28840
Diffstat (limited to 'package/ubus/files/ubus.init')
-rwxr-xr-x | package/ubus/files/ubus.init | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/package/ubus/files/ubus.init b/package/ubus/files/ubus.init index 7fcf106b97..70fe21c6aa 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 } |