From 0473922a36585bebaf6ac96939f69607b25389ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 31 Jan 2021 00:50:04 -0300 Subject: [PATCH] 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. --- srcpkgs/bind/files/named/log/run | 2 ++ srcpkgs/bind/files/named/run | 3 ++- srcpkgs/bind/template | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/bind/files/named/log/run diff --git a/srcpkgs/bind/files/named/log/run b/srcpkgs/bind/files/named/log/run new file mode 100644 index 00000000000..142fbd4af3f --- /dev/null +++ b/srcpkgs/bind/files/named/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec vlogger -t named diff --git a/srcpkgs/bind/files/named/run b/srcpkgs/bind/files/named/run index 9b510127a30..b6bf67c39e9 100755 --- a/srcpkgs/bind/files/named/run +++ b/srcpkgs/bind/files/named/run @@ -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 diff --git a/srcpkgs/bind/template b/srcpkgs/bind/template index f0744606e44..57243a23f4f 100644 --- a/srcpkgs/bind/template +++ b/srcpkgs/bind/template @@ -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