diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-20 15:01:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-20 15:01:12 +0000 |
commit | 0798d4a5c7035bb545dd94527d04fa12b901db15 (patch) | |
tree | 2b9559c2e79f7a93e29bbbeaf1f4a4412390a3d1 /package/ubus/files | |
parent | c2b5767572c7cece21f7739e416d59458278b7d8 (diff) | |
download | mtk-20170518-0798d4a5c7035bb545dd94527d04fa12b901db15.zip mtk-20170518-0798d4a5c7035bb545dd94527d04fa12b901db15.tar.gz mtk-20170518-0798d4a5c7035bb545dd94527d04fa12b901db15.tar.bz2 |
ubusd: add an init script
SVN-Revision: 28496
Diffstat (limited to 'package/ubus/files')
-rwxr-xr-x | package/ubus/files/ubus.init | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/ubus/files/ubus.init b/package/ubus/files/ubus.init new file mode 100755 index 0000000..7fcf106 --- /dev/null +++ b/package/ubus/files/ubus.init @@ -0,0 +1,11 @@ +#!/bin/sh /etc/rc.common +START=11 +PIDFILE=/var/run/ubusd.pid + +start() { + start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/ubusd +} + +stop() { + start-stop-daemon -K -x /sbin/ubusd -p $PIDFILE +} |