From nobody Tue Mar 15 08:21:01 2022 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 AD0B71A2ED33 for ; Tue, 15 Mar 2022 08:23:23 +0000 (UTC) (envelope-from fm-134872-20220315082311498ccd9b4bc9c2653f-4kVrKT@rts-flowmailer.siemens.com) Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net [185.136.65.225]) (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 4KHmd60CBGz4b9m for ; Tue, 15 Mar 2022 08:23:21 +0000 (UTC) (envelope-from fm-134872-20220315082311498ccd9b4bc9c2653f-4kVrKT@rts-flowmailer.siemens.com) Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20220315082311498ccd9b4bc9c2653f for ; Tue, 15 Mar 2022 09:23:12 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=Andre.Albsmeier@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Cc; bh=y5xUOmUuuJNBl6CAklCeftP5Q2N9NxFn8kE8C3Dz/7w=; b=mioJWuwe6v0rp8wALCYHgUp9FVj9ESuiamIGRFXqjSE3z0vpqg5mFj2qhIlFtIzz+iZXDu g6S104la9HdYvSuTHgCWUQ+70HAUhkIpHRbv3LYv9whnHn+sHzdrK9lZtaYm6uFNCTB34Lt7 lM2tF5+4D1D3KGaT60DHDpT4Weh+U=; Date: Tue, 15 Mar 2022 09:21:01 +0100 From: Andre Albsmeier To: rc@FreeBSD.org Cc: Andre.Albsmeier@siemens.com Subject: Different PATHs in /etc/rc and /etc/rc.shutdown Message-ID: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline document_confidentiality: Restricted X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-134872:519-21489:flowmailer X-Rspamd-Queue-Id: 4KHmd60CBGz4b9m X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=siemens.com header.s=fm1 header.b=mioJWuwe; dmarc=pass (policy=none) header.from=siemens.com; spf=pass (mx1.freebsd.org: domain of fm-134872-20220315082311498ccd9b4bc9c2653f-4kVrKT@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-134872-20220315082311498ccd9b4bc9c2653f-4kVrKT@rts-flowmailer.siemens.com X-Spamd-Result: default: False [-5.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[siemens.com:s=fm1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[siemens.com:dkim]; R_SPF_ALLOW(-0.20)[+ip4:185.136.65.224/29]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[rc@freebsd.org]; TO_DN_NONE(0.00)[]; RWL_MAILSPIKE_EXCELLENT(0.00)[185.136.65.225:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[siemens.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[siemens.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[rc]; FORGED_SENDER(0.30)[Andre.Albsmeier@siemens.com,fm-134872-20220315082311498ccd9b4bc9c2653f-4kVrKT@rts-flowmailer.siemens.com]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:50018, ipnet:185.136.65.0/24, country:NL]; FROM_NEQ_ENVFROM(0.00)[Andre.Albsmeier@siemens.com,fm-134872-20220315082311498ccd9b4bc9c2653f-4kVrKT@rts-flowmailer.siemens.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Today I was bitten by the fact that /etc/rc.shutdown and /etc/rc set different PATHs (I used a command sitting in /usr/local/sbin w/o specifying its path and it worked in stop_cmd() but not in start_cmd()): /etc/rc.shutdown: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin /etc/rc: PATH=/sbin:/bin:/usr/sbin:/usr/bin Is there a reason for this? Or should they be made equal? In the latter case I will file a PR... -Andre