Maintainer: me Compile tested: armv7l, OpenWRT SDK Run tested: armv7l Linksys WRT1900ACS, OpenWrt SNAPSHOT, r9987-655fff1571 - confirmed dnsdist links correctly against dependencies and doesn't experience errors at run-time when enabling features. Description: dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. Its goal in life is to route traffic to the best server, delivering top performance to legitimate users while shunting or blocking abusive traffic. dnsdist is dynamic, its configuration language is Lua and it can be changed at runtime, and its statistics can be queried from a console-like interface or an HTTP API. https://dnsdist.org/ Closes: PowerDNS/pdns#3294 Signed-off-by: James Taylor <james@jtaylor.id.au>
20 lines
377 B
Bash
20 lines
377 B
Bash
#!/bin/sh /etc/rc.common
|
|
START=99
|
|
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
config_load dnsdist
|
|
local cfg=general
|
|
local enabled
|
|
|
|
config_get_bool enabled "$cfg" 'enabled' 1
|
|
|
|
[ $enabled -gt 0 ] || return 1
|
|
|
|
procd_open_instance
|
|
procd_set_param command dnsdist --supervised -C /etc/dnsdist.conf
|
|
procd_set_param file /etc/dnsdist.conf
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|