AnsweredAssumed Answered

sourcing a file from /etc/rc

Question asked by Aaronwu Employee on Sep 7, 2011
Latest reply on Oct 12, 2011 by Aaronwu

When I source a file from /etc/rc like  this:

. /etc/somefile

the variables defined in /etc/somefile do not persist after /etc/rc  has exited. But when I source /etc/profile, they do persist. So in order  to define additional variables, I have to append those lines to  /etc/profile and source it again. I really don't want to do this,  because I want to change the root filesystem to be read only. The fact  that variables are persistent only if they are sourced from  /etc/profile, is this a bug or is this by design?

Outcomes