Date: Tue, 12 Jan 2021 09:24:53 +0700 From: Victor Sudakov <vas@sibptus.ru> To: freebsd-questions@freebsd.org Subject: Re: Why services.db? Message-ID: <20210112022453.GA51163@admin.sibptus.ru> In-Reply-To: <244e6157-2bc8-9587-4b4f-e67b8f5af3c8@tundraware.com> References: <244e6157-2bc8-9587-4b4f-e67b8f5af3c8@tundraware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tim Daneliuk wrote: > Back in the olden daze, services where defined in /etc/services. >=20 > I came upon a rather large /var/db/services.db that seems somehow oblique= ly > related to this but I am unclear on a few things: >=20 > - Why does this file exist? What problem is it solving? Isn't it for use in nsswitch.conf?=20 /etc/nsswitch.conf can use databases instead of plain files, probably to speed up lookup. >=20 > - Can it be safely removed? Unless you use "services: db" in /etc/nsswitch.conf, then probably it's safe to remove. If you do, you'd better keep the database up-to-date. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJf/Qh1AAoJEA2k8lmbXsY0VV4H/i4MWmB89KIwiWgrH6B4QBgf AYQgEIauMf8ep0bCFQsoTZPG2FWtJc7a2Jjy8OJmw3xVI39sDEKr4aCKwxEHC45W thsTX2YKzGMu/BRu47JTH3d7oeUMJ06hoemSzBu1RltRj1orYrdl4Cb9EiPkJwhb uO1HI27+Qwzad9x0RjAoowIwKrGaqUzDSV6MH4QV9TZA4V7fLrBfSAHYPhfT7/Mm 1WV/Ma8jigXgIWa3rP3NY7NHo4z7zp2xwqcvYmRNsebSE3uzON3zMsD5Ltmegrte pgKZy9yq3QKywncVpzE5qlloQs0+1/QhcrphUGbMCh48uO3X+2ziUCeywtnOIxU= =xxc3 -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210112022453.GA51163>