2 # Copyright 1999-2008 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
6 opts="${opts} reload configtest"
7 description="NSD is an authoritative only, high performance, open source name server"
8 description_start="Start the server"
9 description_stop="Stop the server"
10 description_configtest="Check the syntax of the configuration file"
11 description_reload="Reload the database file"
13 CONTROL="/usr/sbin/nsdc"
22 ebegin "Checking config"
23 if [ ! -e "/etc/nsd/nsd.conf" ]; then
24 eerror "You need to create an appropriate config file"
25 eerror "in /etc/nsd/ . An example can be found in /etc/nsd/nsd.conf.sample"
29 if ! nsd-checkconf "/etc/nsd/nsd.conf"; then
30 eerror "You have errors in your configfile"
37 configtest || return 1
53 configtest || return 1
54 ebegin "Reloading NSD"