iopsys-feed/ubus-mqtt/files/ubus-mqtt.init
2015-06-15 21:57:39 +02:00

20 lines
291 B
Bash

#!/bin/sh /etc/rc.common
#
# Start the ubus-mqtt
#
START=80
PID_FILE=/var/state/ubus-mqtt.pid
start() {
start-stop-daemon -S -b -m -p $PID_FILE -x /usr/sbin/ubus-mqtt
}
stop() {
start-stop-daemon -K -p $PID_FILE
}
restart() {
stop
start
}