diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-04-30 18:24:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-04-30 18:24:00 +0000 |
commit | ea1d49fc90a156b86c469579c034129d42966c9d (patch) | |
tree | f63d30f19877dcd8aeb4685dcfc0ca4c53caf997 /package/relayd/files/relay.init | |
parent | 4ea86b956c3ba4ed4ae7c20ea1849bfb7004f97a (diff) | |
download | mtk-20170518-ea1d49fc90a156b86c469579c034129d42966c9d.zip mtk-20170518-ea1d49fc90a156b86c469579c034129d42966c9d.tar.gz mtk-20170518-ea1d49fc90a156b86c469579c034129d42966c9d.tar.bz2 |
relayd: use config_load+fixup_interface instead of scan_interfaces to speed up startup time
SVN-Revision: 31544
Diffstat (limited to 'package/relayd/files/relay.init')
-rw-r--r-- | package/relayd/files/relay.init | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/relayd/files/relay.init b/package/relayd/files/relay.init index 98a38b4..314f65b 100644 --- a/package/relayd/files/relay.init +++ b/package/relayd/files/relay.init @@ -26,6 +26,8 @@ start_relay() { config_get proto "$cfg" proto [[ "$proto" == relay ]] || return 0 + fixup_interface "$cfg" + SERVICE_DAEMONIZE=1 SERVICE_WRITE_PID=1 SERVICE_PID_FILE="/var/run/relay-$cfg.pid" @@ -92,6 +94,6 @@ stop() { start() { include /lib/network - scan_interfaces + config_load network config_foreach start_relay interface } |