crelay: Update to V0.9, add startup config file

Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
Ted Hess
2015-08-21 14:40:30 -04:00
parent 28804d8d97
commit eed20a34ff
3 changed files with 8 additions and 10 deletions
+3 -6
View File
@@ -8,17 +8,14 @@ PROG=/usr/bin/${NAME}
USE_PROCD=1
# Custom relay labels (for Web GUI)
LABEL1=""
LABEL2=""
LABEL3=""
LABEL4=""
# Custom relay labels (for Web GUI) are defined in /etc/crelay.conf
start_service() {
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command -d "$LABEL1 $LABEL2 $LABEL3 $LABEL4"
# daemon mode (not daemonized) - starts HTTP server
procd_append_param command -d
procd_close_instance
}