From 59a13e5ffdc3f6b0d089dd5cc85046c787da138a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Jan 2016 23:00:09 +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