Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From 31dde3562f287429eea94b77250d184818b49063 Mon Sep 17 00:00:00 2001 |
| 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Mon, 15 Oct 2018 16:55:09 +0800 |
| 4 | Subject: [PATCH] avoid start failure with bind user |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 9 | --- |
| 10 | init.d | 1 + |
| 11 | 1 file changed, 1 insertion(+) |
| 12 | |
| 13 | diff --git a/init.d b/init.d |
| 14 | index b2eec60..6e03936 100644 |
| 15 | --- a/init.d |
| 16 | +++ b/init.d |
| 17 | @@ -57,6 +57,7 @@ case "$1" in |
| 18 | modprobe capability >/dev/null 2>&1 || true |
| 19 | if [ ! -f /etc/bind/rndc.key ]; then |
| 20 | /usr/sbin/rndc-confgen -a -b 512 |
| 21 | + chown root:bind /etc/bind/rndc.key >/dev/null 2>&1 || true |
| 22 | chmod 0640 /etc/bind/rndc.key |
| 23 | fi |
| 24 | if [ -f /var/run/named/named.pid ]; then |
| 25 | -- |
| 26 | 2.7.4 |
| 27 | |