Fine tuning prometheus exporter for unbound

This commit is contained in:
fnux 2020-06-07 10:34:35 +02:00
parent bffc38ad52
commit 4ff703e6aa
3 changed files with 9 additions and 3 deletions

View File

@ -6,3 +6,11 @@ if [ -f "$__object/parameter/enable_rc" ]; then
echo "unbound-control-setup -d $UNBOUND_CERTS_DIR"
echo "chown unbound:unbound $UNBOUND_CERTS_DIR/*.pem $UNBOUND_CERTS_DIR/*.key"
fi
cat << EOF
if pgrep unbound; then
service unbound reload
else
service unbounb start
fi
EOF

View File

@ -95,6 +95,3 @@ require="__package/unbound" __file "$target_file" \
--source "$source_file" \
--owner root \
--mode 644
# Restart unbound server after reconfiguration.
require="__file/$target_file" __service unbound --action restart

View File

@ -26,6 +26,7 @@ case "$os" in
# Used in gencode-remote.
__package curl
__package tar
__package openssl
__package go
__package libc-dev
;;