]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@uhu1.uhu-banane.de>
Thu, 14 Jan 2016 22:00:09 +0000 (23:00 +0100)
committerroot <root@uhu1.uhu-banane.de>
Thu, 14 Jan 2016 22:00:09 +0000 (23:00 +0100)
init.d/named

index 14b5dd714ad2350e57305c364ef3b0414bb7faa7..5ebbf090cc6a9bfb020474286fb76e9d529fc2ff 100755 (executable)
@@ -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
        }