crelay: Update to V0.9, add startup config file
[feed/packages.git] / utils / crelay / files / crelay.init
index 2f4647500ff7863dcb97620d362274ffc1dd17e7..e00396118e7644bcab6a1a5e2d1c89e8399d0bbf 100644 (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
 }