Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
14f73424
Commit
14f73424
authored
Jun 09, 2003
by
Leigh B. Stoller
Browse files
Look for /usr/local/bin/rndc and run that for named reload instead.
This is the ports version of bind9.
parent
fd2f7a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/named_setup.in
View file @
14f73424
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment