View previous topic :: View next topic |
Author |
Message |
Dr_b_ n00b
Joined: 18 Jan 2004 Posts: 33
|
Posted: Wed Sep 05, 2018 1:37 am Post subject: named show crashed, won't umount chroot dirs |
|
|
Need a bit of help trying to figure out why named won't start or stop correctly
Code: | ~ # /etc/init.d/named start
* Starting chrooted named ...
* Mounting chroot dirs
* Checking named configuration ... [ ok ]
* start-stop-daemon: failed to start `/usr/sbin/named' [ !! ]
* ERROR: named failed to start
~#ps ax | grep named
6678 ? SNsl 0:00 /usr/sbin/named -u named -n 1 -t /named |
Code: | ~ # mount | grep named
/dev/nvme1n1p3 on /named/etc/bind type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/etc/bind)
/dev/nvme1n1p3 on /named/var/bind type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/var/bind)
/dev/nvme1n1p3 on /named/var/log/named type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/var/log/named) |
Also named won't stop, thinks its crashed, and won't umount chroot dirs.
DNS resolves fine and works both for zones and as a relay
Nothing shows up in messages or named.log that provides a clue |
|
Back to top |
|
|
deagol n00b
Joined: 12 Jul 2014 Posts: 61
|
Posted: Wed Oct 10, 2018 9:22 pm Post subject: |
|
|
Not sure if it's related, but it may well be...
The openrc init script is broken and has some serious defects.
From what I remember I was unable to restart named correctly when using chroot on top of the selinux issues. There is an problem with the pid file location, which prevents named to shut down correctly when running in chroot. (The initial start works, but restarting it will not.)
So you may be interested in my attempt of a address the more obvious defects in this bug: https://bugs.gentoo.org/show_bug.cgi?id=601510
The script in the bug report is working for my setup at least. But it's far from fool-proof and unexpected setting can still cause problems... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|