void-packages/srcpkgs/bind/files/named/run
Érico Rolim 6041f96bef 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.
2021-01-31 22:42:30 -03:00

5 lines
145 B
Bash
Executable file

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