Patchwork [1/1] bind: use /var/run/named instead of /var/run/bind/run

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date May 16, 2013, 2:36 a.m.
Message ID <05add70b55729aaf6780063d8cb0f8b806e88481.1368602187.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/49969/
State Accepted
Commit 25e90a44b6870953021b485eee738ebb2ff04977
Headers show

Comments

Qi.Chen@windriver.com - May 16, 2013, 2:36 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

Change /var/run/bind/run to /var/run/named to avoid the following error message.

  chmod: cannot access '/var/run/bind/run': No such file or directory

[YOCTO #4429]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 .../bind/bind-9.8.1/conf.patch                     |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-connectivity/bind/bind-9.8.1/conf.patch b/meta/recipes-connectivity/bind/bind-9.8.1/conf.patch
index 6fea70e..2785c6a 100644
--- a/meta/recipes-connectivity/bind/bind-9.8.1/conf.patch
+++ b/meta/recipes-connectivity/bind/bind-9.8.1/conf.patch
@@ -270,8 +270,8 @@  diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d
 +	# dirs under /var/run can go away on reboots.
 +	mkdir -p /var/run/named
 +	mkdir -p /var/cache/bind
-+	chmod 775 /var/run/bind/run
-+	chown root:bind /var/run/bind/run >/dev/null 2>&1 || true
++	chmod 775 /var/run/named
++	chown root:bind /var/run/named >/dev/null 2>&1 || true
 +
 +	if [ ! -x /usr/sbin/named ]; then
 +	    echo "named binary missing - not starting"