From nobody Fri Jun 25 07:06:14 2021 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 04FD411C8E0D for ; Fri, 25 Jun 2021 07:06:26 +0000 (UTC) (envelope-from yaroslav@shvets.name) Received: from gw1.artcapital.ua (mail.artcapital.ua [91.216.135.35]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GB7Mj5HDZz3L8Y for ; Fri, 25 Jun 2021 07:06:25 +0000 (UTC) (envelope-from yaroslav@shvets.name) Received: from gw1.artcapital.ua (localhost [127.0.0.1]) by gw1.artcapital.ua (8.16.1/8.16.1) with ESMTP id 15P76GEr046729; Fri, 25 Jun 2021 10:06:16 +0300 (EEST) (envelope-from yaroslav@shvets.name) Received: from localhost (yar@localhost) by gw1.artcapital.ua (8.16.1/8.16.1/Submit) with ESMTP id 15P76EE1046723; Fri, 25 Jun 2021 10:06:16 +0300 (EEST) (envelope-from yaroslav@shvets.name) X-Authentication-Warning: gw1.artcapital.ua: yar owned process doing -bs Date: Fri, 25 Jun 2021 10:06:14 +0300 (EEST) From: Yaroslav Shvets To: Ronald Klop cc: Kevin Oberman , FreeBSD Stable ML Subject: Re: [releng/13.0] make delete-old deletes /etc/host.conf, but isc-dhcpd need this file In-Reply-To: <764543478.13087.1624569747065@localhost> Message-ID: References: <764543478.13087.1624569747065@localhost> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (gw1.artcapital.ua [0.0.0.0]); Fri, 25 Jun 2021 10:06:16 +0300 (EEST) X-Rspamd-Queue-Id: 4GB7Mj5HDZz3L8Y X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello Ronald. On Fri, 25 Jun 2021, 00:22, you wrote: > Van: Kevin Oberman > Datum: 24 juni 2021 21:49 > Aan: Yaroslav Shvets > CC: FreeBSD Stable ML > Onderwerp: Re: [releng/13.0] make delete-old deletes /etc/host.conf, but > isc-dhcpd need this file > >> >> >> >> On Tue, Jun 22, 2021 at 11:08 PM Yaroslav Shvets >> wrote: >> >> > Hello All. >> > >> > I'm not sure if I should write here. >> > During upgrading to releng/13.0 `make delete-old` deletes /etc/host.conf. >> > But isc-dhcpd can't start: >> > >> > # service isc-dhcpd start >> > /usr/local/etc/rc.d/isc-dhcpd: ERROR: unable to copy /etc/host.conf to >> > /var/db/dhcpd/etc/host.conf -- not a file or a directory >> > >> > # service isc-dhcpd status >> > dhcpd is not running. >> > >> > rc.conf: >> > -- cut -- >> > dhcpd_enable="YES" # dhcpd enabled? >> > dhcpd_flags="-4" # command option(s) >> > dhcpd_conf="/usr/local/etc/dhcpd.conf" # configuration file >> > dhcpd_ifaces="if_lan" # ethernet interface(s) >> > dhcpd_withumask="002" # file creation mask >> > dhcpd_chuser_enable="YES" # runs w/o privileges? >> > dhcpd_withuser="dhcpd" # user name to run as >> > dhcpd_withgroup="dhcpd" # group name to run as >> > dhcpd_chroot_enable="YES" # runs chrooted? >> > dhcpd_devfs_enable="YES" # use devfs if available? >> > dhcpd_rootdir="/var/db/dhcpd" # directory to run in >> > -- cut -- >> > >> > >> > /usr/local/etc/rc.d/isc-dhcpd: >> > -- cut -- >> > ... >> > setup_chroot () >> > { >> > local _hconf _hosts _ltime _rconf >> > >> > _hconf=host.conf >> > _hosts=hosts >> > _ltime=localtime >> > _rconf=resolv.conf >> > ... >> > eval "safe_copy ${${name}_etcdir}/$_hconf ${_dhcpd_etcdir}/$_hconf" >> > ... >> > -- cut -- >> > >> > What is not working correctly? >> > `make delete-old` or the file "/usr/local/etc/rc.d/isc-dhcpd"? >> > >> > -- >> > Yaroslav Shvets >> > >> No idea why delete-old wants to delete /etc/hosts! It has never touched >> mine running 13.0-Stable and updated every couple of weeks. I suspect that >> you may have a WITHOUT_something in /etc/src.conf that makes the delete-old >> do this. >> -- >> Kevin Oberman, Part time kid herder and retired Network Engineer >> E-mail: rkoberman@gmail.com >> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > > It is not about hosts. It is about this: > > > $ grep host.conf ObsoleteFiles.inc # 20200318: host.conf was deprecated a > long time ago. > OLD_FILES+=etc/host.conf > > > Regards, > Ronald. I have reinstalled isc-dhcpd-server from "pkg+http://pkg.FreeBSD.org/${ABI}/latest" (not quarterly!). There is the new version of isc-dhcpd-server with fixed start script. All works fine as for me. -- Yaroslav Shvets