From owner-freebsd-questions@freebsd.org Fri Apr 3 15:49:12 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9365E2A6B3C for ; Fri, 3 Apr 2020 15:49:12 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (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 48v49Q4XX4z3R1x for ; Fri, 3 Apr 2020 15:48:57 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=OWqZzQRkdh/iBebhG3vsU+E0YvnljSQLwi6aJa37JVs=; b=A81id8fV/OtCaztSITQ1UfWUBE LmEYUYWzRffmE+3IHqGFcAGoO6UODVv89Tu2dK/02CJ1HmQ69L5Ttm9vjjlKAhxoq/K0kTDWQ1JMd leSXhkM15B/CAXGRr6VQNkheFd0BYpqAK0wUPYVGkuyAP/RftEqelYTgnBSywxa3a/VA=; Received: from vas by admin.sibptus.ru with local (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jKOYn-000HZj-SU for freebsd-questions@freebsd.org; Fri, 03 Apr 2020 22:48:45 +0700 Date: Fri, 3 Apr 2020 22:48:45 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: $PATH for services Message-ID: <20200403154845.GA67414@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 48v49Q4XX4z3R1x X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=A81id8fV; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-7.44 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; SUBJECT_HAS_CURRENCY(1.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-3.34)[ip: (-9.89), ipnet: 2001:19f0:5000::/38(-4.94), asn: 20473(-1.83), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2020 15:49:12 -0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, What is the correct way to pass PATH (and other environment variables) to services started from /usr/local/etc/rc.d ? I'm especially interested in daemons which are expected to start other daemons. One of the examples is zabbix_agentd which is supposed to start lots of helper binaries. Fortunatly it has a special provision for that: the $zabbix_agentd_paths rc.conf variable. What about other services/daemons which are not so lucky? --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJeh1rdAAoJEA2k8lmbXsY0oYYH/0DJRgo6ttg4dbpz5ozv4eV6 hAVdxsK8T15e2xYfGnYyhFV1EPTZg5ytCV7PaFz+6uMVgLv442fZ9Yr5a0lCYxQh DuD8CwsDHAgmri3A4YH9/f2LKRf013ubD0yQKZj8YffpoLFwnkv42P5iSvJ+1uAW j/ot9GrLsxg0sQo8jsvXtqiXDL0GcdHNF9MAopJ/D1uBrQc7wAJqEV0CJV61kI3v 3xPc5ECpQFfVsB5+3lJKqmHyt/NuDZdkz5aqSG2TML39k408dx948rXYmpTM6kBg s5ZR9NtUiS3skETmeiRnDM9lLU48nianlE7ifuNID8/0bc9lA4FOX9FmQYhPip4= =a3MU -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK--