diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-01-05 16:36:03 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-01-05 23:37:30 -0800 |
commit | 2e5d9254e63aae1f4181e063bc8c6b66f51a9678 (patch) | |
tree | fc60ddb8d149e21cf614bc994c6a0ca847b08510 /net-dns/bind | |
parent | sys-kernel/genkernel: minor bump for LVM & multipath fixups. (diff) | |
download | gentoo-2e5d9254e63aae1f4181e063bc8c6b66f51a9678.tar.gz gentoo-2e5d9254e63aae1f4181e063bc8c6b66f51a9678.tar.bz2 gentoo-2e5d9254e63aae1f4181e063bc8c6b66f51a9678.zip |
net-dns/bind: fix a chroot startup fail.
Package-Manager: portage-2.2.24
Diffstat (limited to 'net-dns/bind')
-rw-r--r-- | net-dns/bind/files/named.init-r13 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net-dns/bind/files/named.init-r13 b/net-dns/bind/files/named.init-r13 index a320d34f30e3..752338c43744 100644 --- a/net-dns/bind/files/named.init-r13 +++ b/net-dns/bind/files/named.init-r13 @@ -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 } |