packages/utils/crelay/files/crelay.init
Ted Hess 625a7e7563 crelay: Update to 0.10, refresh patches, remove daemon background call
Signed-off-by: Ted Hess <thess@kitschensync.net>
2016-04-17 13:21:44 -04:00

24 lines
418 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2015 OpenWrt.org
NAME=crelay
START=93
PROG=/usr/bin/${NAME}
USE_PROCD=1
# Custom relay labels (for Web GUI) are defined in /etc/crelay.conf
start_service() {
procd_open_instance
# restart if it croaks
procd_set_param respawn
procd_set_param command "$PROG"
# daemon mode (not daemonized) - starts HTTP server
procd_append_param command -d
procd_close_instance
}