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 | 4bac6eb4441e7c56dad416e91a3421d6a8cc88d5 (patch) | |
tree | 91547525cd49089ed550476a7bc1b14a1395f681 /package/ubus/files/ubus.init | |
parent | 7b8a53966aaa3fd75af370c9bd8d4c4009a5c6e3 (diff) | |
download | master-187ad058-4bac6eb4441e7c56dad416e91a3421d6a8cc88d5.tar.gz master-187ad058-4bac6eb4441e7c56dad416e91a3421d6a8cc88d5.tar.bz2 master-187ad058-4bac6eb4441e7c56dad416e91a3421d6a8cc88d5.zip |
ubusd: add an init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28496 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ubus/files/ubus.init')
-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 0000000000..7fcf106b97 --- /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 +} |