I wonder is there a right way to set PATH environment variable for daemons we are starting via /usr/local/etc/rc.d/something startup scripts? each time I portupgrade apache I add the following line to /usr/local/etc/rc.d/apache:
set PATH=/usr/local/bin:/usr/local/sbin:$PATH
and it would be great if there exists a way to set this PATH globally, and be sure that I don't forget to add this line to distribution startup script
set PATH=/usr/local/bin:/usr/local/sbin:$PATH
and it would be great if there exists a way to set this PATH globally, and be sure that I don't forget to add this line to distribution startup script