Different PATHs in /etc/rc and /etc/rc.shutdown
- Reply: Mateusz Piotrowski : "Re: Different PATHs in /etc/rc and /etc/rc.shutdown"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Mar 2022 08:21:01 UTC
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