aboutsummaryrefslogtreecommitdiffstats
path: root/dns/bind98/files/named.in
diff options
context:
space:
mode:
Diffstat (limited to 'dns/bind98/files/named.in')
-rw-r--r--dns/bind98/files/named.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/dns/bind98/files/named.in b/dns/bind98/files/named.in
index 1411dfbe59b1..23296546f148 100644
--- a/dns/bind98/files/named.in
+++ b/dns/bind98/files/named.in
@@ -19,7 +19,7 @@ extra_commands=reload
start_precmd=named_prestart
start_postcmd=named_poststart
-reload_cmd="${command%/named}/rndc reload"
+reload_cmd=named_reload
stop_cmd=named_stop
named_enable=${named_enable:-"NO"} # Run named, the DNS server (or NO).
@@ -43,6 +43,13 @@ named_poststart()
fi
}
+named_reload()
+{
+ # This is a one line function, but ${command} is not defined early
+ # enough to be there when the reload_cmd variable is defined up there.
+ ${command%/named}/rndc reload
+}
+
find_pidfile()
{
if get_pidfile_from_conf pid-file $named_conf; then