From nobody Sat Jan 27 22:36:33 2024 X-Original-To: freebsd-questions@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 4TMqDZ1L4tz5941h for ; Sat, 27 Jan 2024 22:36:46 +0000 (UTC) (envelope-from jmpalacios@gmail.com) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TMqDY57MRz4FYX for ; Sat, 27 Jan 2024 22:36:45 +0000 (UTC) (envelope-from jmpalacios@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-429e6ed0b32so5349291cf.0 for ; Sat, 27 Jan 2024 14:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706395004; x=1706999804; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1ULVmHnMUivDFFtKfOB8+FjKFej7a0TPIRYI4sEFtuo=; b=TSA03Hex3gkGdVi++CjbjKJ5N8kxFW0gXc7YrqnSZljkgLRmOW9QbnBRYcSzdiPGUF FQerr8TEKEV9/ZBCnY4vkaolX7P1UDPYOIdJ0tHNfsaXgCkk6PqDEK1Dg+l6PBJqlBFh P4IC8olLqpSdQcEWgUMC9HMh3padF4pZCVWAWZ75bBqeVgi+lRVpEmb9fEXaLc5cm0aB Pd/BruK6ZeQ7MVFRFO5SLi1M5wUL1Svz454y1W0xs7r36nltAOrvaVOAbxoTxcOFpaiq ZFfUtB4ajIK66cOQ/eTCzWY606a3tqNu3Fep+oIte2oJ/EouI2dLiUwvZQ+tccmFMmY+ yjWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706395004; x=1706999804; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1ULVmHnMUivDFFtKfOB8+FjKFej7a0TPIRYI4sEFtuo=; b=I7hpgjqcOdyyVadBPOn65kYwAAZ13rxBCYcw1lPpsFVfb5dOIuSsxu98bVWEjeCjog me37kNC1jooDwgcqOWoRl4rxv7B7pEWdMqO7tK5DER8+CVRMRsTYO6L/D667c7m4k8Dq tuctlr9M71sqJecBNhrzzJIPktkkq2dE+XHjmYgyd0YB1HgXj6Tr3TQmQTRwOLrqdNkn SRS9jubQiKK0Q4IlA8CIFx42c1r870rU+T6vEHLfCapiInHAGC6p2U19G1RmDliAZxds 5RvG70t75plvdTqdOY13Fbhr7iU40JBC6yLi7SChvaiP+VdfZNZ39XFdNE4cNlUVfw+z MuRw== X-Gm-Message-State: AOJu0YxDc8eiUE1lLUG3FVikNKRjsUYhz2cBS18gSyX+ecDFbTgrTCyz buM2En0DZ2swwJNMN1nxhkmdG2XmZTUVCsU9bOa904aN/Op+SPNtbiRlLQE0 X-Google-Smtp-Source: AGHT+IEzcTb6E3+oWCdhd9K+E+kJQpXcOMqy3v6znYLsYs0kHU8gsPyb07PmcFe54vnq8qv2B5kvBA== X-Received: by 2002:a05:6214:260f:b0:685:1ede:3daa with SMTP id gu15-20020a056214260f00b006851ede3daamr4267808qvb.6.1706395004372; Sat, 27 Jan 2024 14:36:44 -0800 (PST) Received: from smtpclient.apple ([2600:4041:797e:1e00:5971:bddb:ab62:eb40]) by smtp.gmail.com with ESMTPSA id s9-20020a0ca609000000b00685ba831e4bsm1864100qva.118.2024.01.27.14.36.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Jan 2024 14:36:44 -0800 (PST) Content-Type: text/plain; charset=utf-8 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: Re: Moving /etc/rc.conf.local to /usr/local/etc/rc.conf From: Juan Manuel Palacios In-Reply-To: <4eaf8b39-023f-d08f-ef2d-3d00e4add610@iecc.com> Date: Sat, 27 Jan 2024 17:36:33 -0500 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240106214844.5B9DA7FE2A02@ary.qy> <158D9F44-5633-4B4E-A781-834574F42F67@gmail.com> <73678f67-e49f-365a-da09-5575619d736b@iecc.com> <4eaf8b39-023f-d08f-ef2d-3d00e4add610@iecc.com> To: John Levine X-Mailer: Apple Mail (2.3774.400.31) X-Rspamd-Queue-Id: 4TMqDY57MRz4FYX X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] > On Jan 27, 2024, at 5:31=E2=80=AFPM, John R. Levine = wrote: >=20 >> I know you can customize the rc_conf_files variable to hold a value = with my files of choice, but that in itself implies customizing = /etc/rc.conf to override rc_conf_files=E2=80=99 default value, which = defeats the purpose of keeping all customizations to /usr/local/etc. >=20 > I didn't write this stuff, I just use it. I wasn=E2=80=99t saying you did ;) Was just asking if you knew if there = was any rationale behind the choice of supporting /etc/rc.conf.local = out-of-the-box, but not /usr/local/etc/rc.conf. If there is such a = rationale, then an upstream contribution to support the latter would = probably not make sense. Otherwise, I=E2=80=99d be more than happy to = send a merge request. >=20 > The rc.conf stuff is just shell scripts so you can look at each script = to see what it does. >=20 > You will probably find there's no way around putting config stuff in = /etc/rc.conf. Whenever I spin up a FreeBSD VPS, there's always a custom = rc.conf with the hostname, IP address, and so forth. Sure thing, absolutely, but my point is keeping that to a minimum, and = moving as much stuff as possible to /usr/local/etc. I can already do = that via individual /usr/local/etc/rc.conf.d/$name configuration files, = as I said before, but supporting a single /usr/local/etc/rc.conf file = out-of-the-box would also be a pretty interesting option, in my opinion. >=20 > Regards, > John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for = Dummies", > Please consider the environment before reading this e-mail. = https://jl.ly Regards,