From nobody Thu Feb 9 17:41:54 2023 X-Original-To: rc@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 4PCPLq5m5Sz3myGK for ; Thu, 9 Feb 2023 17:41:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PCPLq4Wryz4Z7q for ; Thu, 9 Feb 2023 17:41:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675964515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4PaeEfvEqlBBesP/30+b3LYhpgqvRbo35AkTV5dV7mE=; b=x96v60j92AJNiAIaYQmXanrBwTjwKBca/YZ6N5I3N9bdXlGRmFsle26H+uZaqtA6/3HsGa dPCB6NGk9/WKPeDTv15mR1Xtm1rxHk3n/+gAL8Y0uCB8HnAzzQjlw23qTNUBrdPuH/WV2t X/4sA89DNecOWeA6NNgxUef0bZey+8R0P7zV2SYmIjTAG07vWX6KP5mEiTp5AvkEgky3HM y5B91baFgsYUN2wvoNSuS80yBdGp6gPzkp5Ot+KEBIKMHqsKT9B0GXsE3UEN08rhl6FtHl rhxTYHztvr4ipMU9rqBlVEEDO3OdSfSBXHd4Dc4DOEK0T+6Rmrp8XxlamXWbUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675964515; a=rsa-sha256; cv=none; b=WnM7KCkF8SaNbLSwP6ygKyl4uDQbs0FQqJnscTgVLQBR+eQ5ZQfRBZTjCuh28U76T6BDpc 1Lx8som9uSove6i8swK0XcQUJZeIg5Rx1SEY/Dwf3nrZbuxOiFqoQtQrU5AuQTGLwaSZEc r6Iu4uiHsPu3vaaugCidZ7frthl7hSKpZ0KIRIyaoTkz+ulig9toGX9cyFsoSlHKzfMpQJ 5+l35PXTKCAmGaYe9cjPawdMnFfiGJ9A2UIn2s43/8far9RPJo+mebsaPghrxb2jyHcKdA VDZUOUsMTytyfNxUEVhrgLOHIZahY9pBI2J3LTGH7Ef9eWTphEsGBIdhRmCBhg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PCPLq3bQwzm4Q for ; Thu, 9 Feb 2023 17:41:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 319HftQO063499 for ; Thu, 9 Feb 2023 17:41:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 319Hft2n063498 for rc@FreeBSD.org; Thu, 9 Feb 2023 17:41:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: rc@FreeBSD.org Subject: [Bug 197152] rc(8) config files under /usr/local/etc/rc.d/rc.conf.d/ are not sourced at startup Date: Thu, 09 Feb 2023 17:41:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fernape@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fernape@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status assigned_to cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion related to /etc/rc.d design and implementation List-Archive: https://lists.freebsd.org/archives/freebsd-rc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D197152 Fernando Apestegu=C3=ADa changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed Assignee|rc@FreeBSD.org |fernape@FreeBSD.org CC| |fernape@FreeBSD.org --- Comment #4 from Fernando Apestegu=C3=ADa --- This was addressed in 454adf0fa4d787bf6e6ff7be0aa6c27a91d2be8e --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Mar 2 20:32:34 2023 X-Original-To: rc@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 4PSN8D0q4Lz3wF8J for ; Thu, 2 Mar 2023 20:32:44 +0000 (UTC) (envelope-from SRS0=ktWf=62=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PSN8B6kmVz3tQT for ; Thu, 2 Mar 2023 20:32:42 +0000 (UTC) (envelope-from SRS0=ktWf=62=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of "SRS0=ktWf=62=quip.cz=000.fbsd@elsa.codelab.cz" has no SPF policy when checking 94.124.105.4) smtp.mailfrom="SRS0=ktWf=62=quip.cz=000.fbsd@elsa.codelab.cz"; dmarc=none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 01030D789F for ; Thu, 2 Mar 2023 21:32:39 +0100 (CET) Received: from [192.168.145.50] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 0F8F3D7893 for ; Thu, 2 Mar 2023 21:32:35 +0100 (CET) Message-ID: Date: Thu, 2 Mar 2023 21:32:34 +0100 List-Id: Discussion related to /etc/rc.d design and implementation List-Archive: https://lists.freebsd.org/archives/freebsd-rc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 To: rc@FreeBSD.org Content-Language: cs-Cestina, en-US From: Miroslav Lachman <000.fbsd@quip.cz> Subject: detailed manual for rc scripting Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-1.75 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.95)[-0.951]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=ktWf=62=quip.cz=000.fbsd@elsa.codelab.cz]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[rc@FreeBSD.org]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[quip.cz]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=ktWf=62=quip.cz=000.fbsd@elsa.codelab.cz]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[rc@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4PSN8B6kmVz3tQT X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N I would like to know if there is something more than https://docs.freebsd.org/en/articles/rc-scripting/ and man rc.subr(8)? Every now and then I need to write some rc script for customer services or fix some existing rc script which became broken after update of base or some packages. Starting the interpreted (node.js, python etc.) services are often way more complicated than what is described in handbook but I always spend about 30% of time by doing the start part and 70% of doing the part required to stop the service - matching command / interpreter / procname is not an easy task and debugging it is even more complicated. Almost always one need to tune just these 3 variables command, command_interpreter, procname but it is sometimes too difficult if one do not have deep knowledge of how things works in rc.subr and sometimes even reading the source of rc.subr is not clear to me. So is there some detailed manual how to put things together in edge cases where service is interpreted, running from Pyhton virtualenv, there are symlinks in path so the real path shown by "ps" is different than the path used to start the service and so on. Kind regards Miroslav Lachman