Openwrt/package/ubus/files/ubus.init
Felix Fietkau 0798d4a5c7 ubusd: add an init script
SVN-Revision: 28496
2011-10-20 15:01:12 +00:00

12 lines
190 B
Bash
Executable File

#!/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
}