Commit 14f73424 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Look for /usr/local/bin/rndc and run that for named reload instead.

This is the ports version of bind9.
parent fd2f7a62
......@@ -328,10 +328,17 @@ if ($db_result->numrows > 0) {
close(MAP);
#
# This is better than HUPing the nameserver.
#
system("named.reload > /dev/null") == 0 or
fatal("named.reload failed!\n");
# This is better than HUPing the nameserver directly. Notet that we look
# for a local port of named first.
#
if (-x "/usr/local/sbin/rndc") {
system("/usr/local/sbin/rndc reload > /dev/null") == 0 or
fatal("/usr/local/sbin/rndc reload failed!\n");
}
else {
system("named.reload > /dev/null") == 0 or
fatal("named.reload failed!\n");
}
exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment