Inicializacny commit

This commit is contained in:
2020-10-26 20:07:30 +01:00
commit 0852a2c83e
5 changed files with 466 additions and 0 deletions

22
bell-rspro.init Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/sh /etc/rc.common
# "new(er)" style init script
# Look at /lib/functions/service.sh on a running system for explanations of what other SERVICE_
# options you can use, and when you might want them.
START=80
APP=bell-mqtt-recv
SERVICE_WRITE_PID=1
SERVICE_DAEMONIZE=1
HOST=172.16.1.254
PORT=1883
TOPIC=home/bell/ring
GPIO=7
SECONDS=1
start() {
service_start /usr/sbin/$APP $HOST $PORT $TOPIC $GPIO $SECONDS
}
stop() {
service_stop /usr/sbin/$APP
}