bind: fix named service.

When used with the -f option, it can crash, likely due to a lack of
syslog. Using -g makes it work but still keeps it in the foreground, by
logging directly to stderr. By adding a logger to it, we follow the
pattern of most other services.

Fixes #18961.
This commit is contained in:
Érico Rolim 2021-01-31 00:50:04 -03:00 committed by Érico Nogueira Rolim
parent 6e16db3683
commit 6041f96bef
3 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec vlogger -t named

View File

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
mkdir -p /var/run/named || exit 1
chown named:named /var/run/named || exit 1
exec named -u named -f -c /etc/named/named.conf
exec named -u named -g -c /etc/named/named.conf

View File

@ -1,7 +1,7 @@
# Template file for 'bind'
pkgname=bind
version=9.16.7
revision=2
revision=3
_fullver="${version}${_patchver:+-${_patchver}}"
wrksrc="${pkgname}-${_fullver}"
build_style=gnu-configure