From nobody Sat Jan 06 19:58:11 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 4T6rjZ1L8Lz574Bj for ; Sat, 6 Jan 2024 19:58:26 +0000 (UTC) (envelope-from jmpalacios@gmail.com) Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (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 4T6rjY36hyz4468 for ; Sat, 6 Jan 2024 19:58:25 +0000 (UTC) (envelope-from jmpalacios@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=IWMVQ+Y5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of jmpalacios@gmail.com designates 2607:f8b0:4864:20::231 as permitted sender) smtp.mailfrom=jmpalacios@gmail.com Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3bc21303a35so131717b6e.0 for ; Sat, 06 Jan 2024 11:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704571103; x=1705175903; darn=freebsd.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=mO7yQDIt9nhWWQTF/UMsjnfk/v6uRq5x5jayCtLoCAw=; b=IWMVQ+Y5PazuzVew2XCiOTRES/E2b8yOoOjkXqfalvzfN3Xyh/EfB8fKvM0QXUlEmd riTqvZNtJJo2n+qnH/PyrqY85ye7poIlJftk1hE1YfnpWmlhqh4ptDpHD0mXMits6xuv sUP1P80am7r/krDgQ7Z4nDeP3qFsO2p9YZjXtfUQLSemXSYPINUNbdvsNG3r6dNh/RA8 CEmRNZ0EOWEVW6I0+P4dRuW1sAVBc8hAbJvHY6R3Quu1n3/q7Pg0KuRW1vWWN/qrb1Zs EGCl6+V2Fl/9AssTzl7aORStAqHAbojs7mr0ZYzAqvie227qVn6wVg6XDjI+RG3+aXTb YI2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704571103; x=1705175903; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mO7yQDIt9nhWWQTF/UMsjnfk/v6uRq5x5jayCtLoCAw=; b=R4vTDrDVltpAZX9mMOhCD/omge1IojwIIut/K1ldFAtI7+wdanmVXeRccoa1m2tpEM yYQuK0N8KRlk1b/yAAJKHXwrnoCxIkUtGHNHd9GRzmkpiCBIMCzDCls1vnnoC+xD2KSN hHy6HQG/5U2E3CidXW6utN52mCW2DxY+tKyWGgjmrWOm/CWcOihjiAFfzMBWZa80L34v /+EjtC9hGG5D99PBAOF/RuN/tORUV/+dCIhskWJWBvITubruQLlAvZ79RALI3D/iYLLJ LXOoSW9f3uGwyn9Cu6KDwvjn4McXQiVvIBDrW+BC7+uYDXD2TtbW8LKftzorIEnWG11M C3tg== X-Gm-Message-State: AOJu0YxXDM+d5hraqjd2DsiPXWSMJJUkibTKXqGviDwCOTSIyPyA1lfP 8SnRqHpthfEpnwjRqiBiqR8s5K5cfyU= X-Google-Smtp-Source: AGHT+IGRov7W+LM0BamNjzyAGaBJhbGh3LYdO7h6afe36mE/sF3Ph/9lFEYCwS2/2JsgUku6gsP3yg== X-Received: by 2002:a05:6808:3a1:b0:3bd:2352:4848 with SMTP id n1-20020a05680803a100b003bd23524848mr1274552oie.4.1704571103018; Sat, 06 Jan 2024 11:58:23 -0800 (PST) Received: from smtpclient.apple ([2600:4041:797e:1e00:b962:63d3:c351:f0f7]) by smtp.gmail.com with ESMTPSA id s1-20020a05621412c100b00680cac39daasm1569777qvv.25.2024.01.06.11.58.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Jan 2024 11:58:22 -0800 (PST) From: Juan Manuel Palacios Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 \(3731.700.6\)) Subject: Moving /etc/rc.conf.local to /usr/local/etc/rc.conf Message-Id: <1C01310F-7F1E-49D8-B480-1BEAA9EFF809@gmail.com> Date: Sat, 6 Jan 2024 14:58:11 -0500 To: "freebsd-questions@freebsd.org" X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_EQ_ADDR_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::231:from] X-Rspamd-Queue-Id: 4T6rjY36hyz4468 Hi everyone, I=E2=80=99m new on this mailing list (though not to FreeBSD proper), so = apologies if this question has already been beaten to death, but I = couldn=E2=80=99t find any discussions on the topic anywhere. I=E2=80=99m = happy to be pointed to existing answers if they exist, though. Basically, my question is if it=E2=80=99s possible to use something like = /usr/local/etc/rc.conf to configure stuff like services that should = start on system boot, rather than putting that stuff in = /etc/rc.conf.local (or /etc/rc.conf, for that matter). And the context = of my question is that lately I=E2=80=99ve been looking for ways to = simplify my jail management as I move through several of them for = multiple reasons (major userland upgrades, major application upgrades, = etc.), and one thing I find myself doing more-and-more is extracting all = sorts of configuration to mounts, with /urs/local/etc being one of them = (and turning the jails themselves more-and-more into disposable units). So, if I have a configs directory mounted onto jail A=E2=80=99s = /usr/local/etc, and at some point I want to upgrade that jail to its = successor jail B, moving that same mount to the latter=E2=80=99s = /usr/local/etc makes upgrading a breeze. The only problem I have is that = this process fails to capture the configurations made in rc.conf(5). The best technique I=E2=80=99ve come up with so far to remediate this = problem is indeed creating a /usr/local/etc/rc.conf file, which I = configure to my liking, and then symlink=E2=80=99ing /etc/rc.conf.local = to it. But, other than having to remember to create the symlink in the = new jail, I keep thinking that there must be a better way that=E2=80=99d = keep my local configurations fully out of /etc. So, is there a reason why rc(8) supporting (or me =E2=80=9Cforcing=E2=80=9D= it to support via my symlink) a /usr/local/etc/rc.conf file would be a = bad idea? Or would this be a worthy enhancement to rc(8)? Thank you in advance for any help!=