summaryrefslogtreecommitdiff
path: root/package/network/services/relayd/files/relay.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/relayd/files/relay.init')
-rw-r--r--package/network/services/relayd/files/relay.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/relayd/files/relay.init b/package/network/services/relayd/files/relay.init
index 3635e9c..c628863 100644
--- a/package/network/services/relayd/files/relay.init
+++ b/package/network/services/relayd/files/relay.init
@@ -41,6 +41,9 @@ start_relay() {
config_get proto "$cfg" proto
[ "$proto" = "relay" ] || return 0
+ config_get_bool disabled "$cfg" disabled 0
+ [ "$disabled" -gt 0 ] && return 0
+
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
SERVICE_PID_FILE="/var/run/relay-$cfg.pid"