bouncedns - scheduled restart of named
This script can be run regularly to check if a restart or reload of named has been requested.
The first command line causes it to look for the flag file named by the variable NDBOUNCE, DNS_DIR/.restart_dns or DNS_DIR/.reload_dns and if present performs the appropriate action. If the flag file contains the word reload that is the action, otherwise it is restart.
If the first arg is -f or force it performs the action immediately after ensuring that the flags file has been removed. The .reload_dns flag file is alway removed, the restart.
If run with no arg it simply creates the flag file.
Simon J. Gerraty <sjg@crufty.net>