From 2d0de727e506425edf691c1988d2a2f6f2f51a70 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 18 Jan 2016 17:47:43 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- init.d/named | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.d/named b/init.d/named index 14b5dd7..5ebbf09 100755 --- a/init.d/named +++ b/init.d/named @@ -152,6 +152,10 @@ start() { _mount /usr/share/GeoIP ${CHROOT}/usr/share/GeoIP -o bind fi fi + + # On initial startup, if piddir inside the chroot /var/run/named + # Then the .../var/run part might not exist yet + checkpath -q -d -o root:root -m 0755 "${piddir}/.." fi checkconfig || { eend 1; return 1; } @@ -160,6 +164,7 @@ start() { _get_pidfile piddir="${PIDFILE%/*}" checkpath -q -d -o root:named -m 0770 "${piddir}" || { + eerror "Failed to create PID directory at $piddir" eend 1 return 1 } -- 2.39.5