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:
parent
6e16db3683
commit
6041f96bef
3 changed files with 5 additions and 2 deletions
2
srcpkgs/bind/files/named/log/run
Normal file
2
srcpkgs/bind/files/named/log/run
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec vlogger -t named
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
exec 2>&1
|
||||||
mkdir -p /var/run/named || exit 1
|
mkdir -p /var/run/named || exit 1
|
||||||
chown named:named /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
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'bind'
|
# Template file for 'bind'
|
||||||
pkgname=bind
|
pkgname=bind
|
||||||
version=9.16.7
|
version=9.16.7
|
||||||
revision=2
|
revision=3
|
||||||
_fullver="${version}${_patchver:+-${_patchver}}"
|
_fullver="${version}${_patchver:+-${_patchver}}"
|
||||||
wrksrc="${pkgname}-${_fullver}"
|
wrksrc="${pkgname}-${_fullver}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue