mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-26 06:13:49 +01:00
16 lines
327 B
Bash
Executable File
16 lines
327 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
sleep 300
|
|
|
|
for service in unbound encrypted-dns; do
|
|
sv check "$service" || sv force-restart "$service"
|
|
done
|
|
|
|
KEYS_DIR="/opt/encrypted-dns/etc/keys"
|
|
GRACE_PERIOD=60
|
|
|
|
provider_name=$(cat "${KEYS_DIR}/provider_name")
|
|
|
|
drill -p 443 -Q TXT "$provider_name" @127.0.0.1 ||
|
|
sv force-restart encrypted-dns
|