Different PATHs in /etc/rc and /etc/rc.shutdown
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Mar 2022 05:10:46 UTC
Today I was bitten by the fact that /etc/rc.shutdown and /etc/rc set different PATHs at least on 12.3-STABLE (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