6041f96bef
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.
5 lines
145 B
Bash
Executable file
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
|