Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIND graceful shutdown. Fixes #10824 #917

Merged
merged 1 commit into from
Aug 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dns/pfSense-pkg-bind/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= pfSense-pkg-bind
PORTVERSION= 9.16
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= dns net
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
8 changes: 7 additions & 1 deletion dns/pfSense-pkg-bind/files/usr/local/pkg/bind.inc
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,9 @@ function bind_write_rcfile() {
fi
EOD;
$rc['stop'] = <<<EOD
{$BIND_LOCALBASE}/sbin/rndc -q -c "{$BIND_LOCALBASE}/etc/rndc.conf" sync -clean 2>/dev/null
{$BIND_LOCALBASE}/sbin/rndc -q -c "{$BIND_LOCALBASE}/etc/rndc.conf" stop -clean 2>/dev/null
sleep 5
/usr/bin/killall -TERM named 2>/dev/null
sleep 2
EOD;
Expand All @@ -912,8 +915,11 @@ EOD;
if [ -z "`/bin/ps auxw | /usr/bin/grep "[n]amed " | /usr/bin/awk '{print $2}'`" ]; then
{$BIND_LOCALBASE}/sbin/named {$ip_version} -c /etc/namedb/named.conf -u bind -t /cf/named/
else
{$BIND_LOCALBASE}/sbin/rndc -q -c "{$BIND_LOCALBASE}/etc/rndc.conf" sync -clean 2>/dev/null
{$BIND_LOCALBASE}/sbin/rndc -q -c "{$BIND_LOCALBASE}/etc/rndc.conf" stop -clean 2>/dev/null
sleep 5
/usr/bin/killall -TERM named 2>/dev/null
sleep 3
sleep 3
{$BIND_LOCALBASE}/sbin/named {$ip_version} -c /etc/namedb/named.conf -u bind -t /cf/named/
fi
EOD;
Expand Down