From nobody Sun Jan 07 04:04:28 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 4T73Vc4DQyz56PW0 for ; Sun, 7 Jan 2024 04:04:40 +0000 (UTC) (envelope-from jmpalacios@gmail.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 4T73Vc2Zszz4vpq for ; Sun, 7 Jan 2024 04:04:40 +0000 (UTC) (envelope-from jmpalacios@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-7810d157804so8157785a.0 for ; Sat, 06 Jan 2024 20:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704600279; x=1705205079; 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=Jb9FLPO2Nrky1U5A44MV18h1OMgP79D9QtHmevNX9gw=; b=Mv6wx1+JrCclckXg8XPera/wNE8yr+41fbELnNSGUhr8pUnEnEKUMBtpoKkBgQ/C0w qfdsd0SRmKG5w8HToteVJUx9xwe4Anzr1hlp23/GfgIvTFlwISRCUPFROIylIlbOC9Pz 4fQeDd92Q0oju+ErY8pUMe54pOctAqO1IBaGVpjnnjJizwxnZU9sRXNhGgRd0rwmYfy0 IJuM1xMiqC3jBc+QkTOJbqvTRyaa9X+WoEDU8DUwm/jIqlS3itnIQQp+3yYfnvZbW745 oAupnx9Iksgn+GjqRCOyve3Cfb6yQIhlVR9AT5q7upkkfZNlA/UvPZN00luuMPx+PUPb Vr4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704600279; x=1705205079; 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=Jb9FLPO2Nrky1U5A44MV18h1OMgP79D9QtHmevNX9gw=; b=AluHsEqDfcvWnHyCh3xeqerFJb8Cr+fpcGV/v60oMe2XgjEtvLvBiBRxiVTRFH3OBV Kl5qGxxqK0j6RTSBtCpdbdyHHo5NTI8VZxb0+uP7U8PuDM3R8YQJfScRmm4bozayV/Iu zLUXe61K8L+m1yX2bzua1VzMsJ8ek5WbopWvuEaC/gvqp5TvnKFZ2UTWLI4YHULG5X1V kxvtum+UtQKgCn6DKK793JnMAPd2lGOgsvZDe0qTGZyMFN0dQG8j6r0Q6rkywX1KlIJt OA2aRruYQJCR2tNRE8aDqUzfmhbqcO2PNgE2lKY+ZX/6iMehhpeAxIhFJovgwQwwjzdu /AhQ== X-Gm-Message-State: AOJu0YzNl7uQXRzxR5/9wMo8E4xu1I0laEKbD8xp1nXFe5tSZIvJRyzU Bm6y5hcgNH6bbXzvCvqRMRvZgDd/dQU= X-Google-Smtp-Source: AGHT+IFoI4WY5jmV3XTih4NpQuP4Cq9/e7Y8MqnXuyxaIGkcjePmgkenhDik/I49zhRWlGB0vO3uMg== X-Received: by 2002:a05:620a:3942:b0:781:22ad:c89d with SMTP id qs2-20020a05620a394200b0078122adc89dmr4047646qkn.4.1704600279446; Sat, 06 Jan 2024 20:04:39 -0800 (PST) Received: from smtpclient.apple ([2600:4041:797e:1e00:b962:63d3:c351:f0f7]) by smtp.gmail.com with ESMTPSA id c10-20020a37e10a000000b007815a43d297sm1733378qkm.40.2024.01.06.20.04.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Jan 2024 20:04:39 -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 \(3731.700.6\)) Subject: Re: Moving /etc/rc.conf.local to /usr/local/etc/rc.conf From: Juan Manuel Palacios In-Reply-To: <20240106214844.5B9DA7FE2A02@ary.qy> Date: Sat, 6 Jan 2024 23:04:28 -0500 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <158D9F44-5633-4B4E-A781-834574F42F67@gmail.com> References: <20240106214844.5B9DA7FE2A02@ary.qy> To: John Levine X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4T73Vc2Zszz4vpq 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] Hi John, > On Jan 6, 2024, at 4:48 PM, John Levine wrote: >=20 > It appears that Juan Manuel Palacios said: >> Hi everyone, >>=20 >> 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. >>=20 >> 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). >=20 > The fifth paragraph of the rc.conf(5) man page appears to answer this = question. Thank you for pointing out that entry in the rc.conf(5) man page! I = guess I either didn=E2=80=99t pay too much attention to it at first, = and/or I was thrown off either by the meaning of =E2=80=9C(dir)=E2=80=9D = in that paragraph, which I can only assume maps to /usr/local/etc (but I = still haven=E2=80=99t tested to confirm that), or by the fact that you = can only use =E2=80=9C(name)=E2=80=9D configuration files inside = rc.conf.d within =E2=80=9C(dir)=E2=80=9D, rather than just a plain = rc.conf file within =E2=80=9C(dir)=E2=80=9D. So, if I=E2=80=99m I=E2=80=99m understanding correctly, that=E2=80=99d = mean that I can have configuration files (*NOT* script files, which = would go inside =E2=80=9C(dir)=E2=80=9D/rc.d) such as: /usr/local/etc/rc.conf.d/apache24 /usr/local/etc/rc.conf.d/php-fpm but not a single one named: /usr/local/etc/rc.conf So, if that=E2=80=99s correct, why the seeming deviation from what = appears to be the norm of /etc/foo, for base system configurations, and = /usr/local/etc/foo, for local configurations? That can be seen, e.g., in = pkg.conf(5), and if I=E2=80=99m not mistaken for multiple other tools. = Why would rc(8) offer /etc/rc.conf & /etc/rc.conf.local instead? >=20 > R's, > John Thanks,=