Chroot Bind failed to start
Reindl Harald
h.reindl at thelounge.net
Tue Mar 15 13:26:20 UTC 2022
Am 15.03.22 um 14:08 schrieb Paul Amaral via bind-users:
> Hi, I realize this is related to Centos, but all the sudden chroot bind
> failed to start up with any meaningful errors.
you need to debug this terrible "ExecStartPre" where the package
maintainer was too lazy to include a script file in the package and
wrapped everything in "/bin/bash -c"
that's a good example how a systemd-unit should *not* look like -
especially combined with env-vars and what not
try to disable the check and look if at least named would work as
expected - good chances only the check is borked
> Job for named-chroot.service failed because the control process exited
> with error code. See "systemctl status named-chroot.service" and
> "journalctl -xe" for details.
>
> [root at ns1.frv.ma:/var/named/meganet]#systemctl status
> named-chroot.service -l
>
> ● named-chroot.service - Berkeley Internet Name Domain (DNS)
>
> Loaded: loaded (/usr/lib/systemd/system/named-chroot.service;
> enabled; vendor preset: disabled)
>
> Active: failed (Result: exit-code) since Tue 2022-03-15 08:46:11
> EDT; 6min ago
>
> Process: 3045 ExecStartPre=/bin/bash -c if [ !
> "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -t
> /var/name d/chroot -z "$NAMEDCONF"; else echo "Checking of zone
> files is disabled"; fi (code=exited, status=1/FAILURE)
>
> Mar 15 08:46:11 ns1.frv.ma systemd[1]: named-chroot.service: control
> process exited, code=exited status=1
>
> Mar 15 08:46:11 ns1.frv.ma systemd[1]: Failed to start Berkeley Internet
> Name Domain (DNS).
>
> Mar 15 08:46:11 ns1.frv.ma systemd[1]: Unit named-chroot.service entered
> failed state.
>
> Mar 15 08:46:11 ns1.frv.ma systemd[1]: named-chroot.service failed
More information about the bind-users
mailing list