From: root Date: Mon, 18 Jan 2016 16:47:43 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=2d0de727e506425edf691c1988d2a2f6f2f51a70;p=config%2Fhelga%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 }