forked from ungleich-public/cdist-contrib
Fine tuning prometheus exporter for unbound
This commit is contained in:
parent
bffc38ad52
commit
4ff703e6aa
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -26,6 +26,7 @@ case "$os" in
|
|||
# Used in gencode-remote.
|
||||
__package curl
|
||||
__package tar
|
||||
__package openssl
|
||||
__package go
|
||||
__package libc-dev
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue