Date: Tue, 15 Mar 2022 09:21:01 +0100 From: Andre Albsmeier <Andre.Albsmeier@siemens.com> To: rc@FreeBSD.org Cc: Andre.Albsmeier@siemens.com Subject: Different PATHs in /etc/rc and /etc/rc.shutdown Message-ID: <YjBMbdr4kmxzkWtf@bali>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YjBMbdr4kmxzkWtf>