]> Frank Brehm's Git Trees - config/helga/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@helga.brehm-online.com>
Mon, 18 Jan 2016 16:47:43 +0000 (17:47 +0100)
committerroot <root@helga.brehm-online.com>
Mon, 18 Jan 2016 16:47:43 +0000 (17:47 +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
        }