mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
crelay: Update to V0.9, add startup config file
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user