#!/bin/bash
# ==== Configuration ==========================

# set this to the full path to your bind control script (usually
# /etc/init.d/bind or /etc/init.d/named)
PATH_TO_BIND=/etc/init.d/bind9

# set this to the command used to reload your bind configuration
# files (normally "reload" or "force-reload")
RESTART_COMMAND=reload

# set this to the same value as BIND_CFG_PATH in config.php
BIND_CFG_PATH=/mnt/srv1/shared/var/named/ddns/

# ==== End of Configuration ===================

[ ! -f ${BIND_CFG_PATH}.need_restart-${HOSTNAME} ] && exit
$PATH_TO_BIND $RESTART_COMMAND
rm -f ${BIND_CFG_PATH}.need_restart-${HOSTNAME}
