From: root Date: Thu, 14 Jan 2016 22:00:09 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=59a13e5ffdc3f6b0d089dd5cc85046c787da138a;p=config%2Fuhu1%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- 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 }