3 simple steps to make booting/shutdown faster...

Ville Skyttä ville.skytta at iki.fi
Mon Feb 18 19:47:43 UTC 2008


On Monday 18 February 2008, Robert Locke wrote:
> On Mon, 2008-02-18 at 19:35 +0200, Ville Skyttä wrote:
> > On Sunday 17 February 2008, Behdad Esfahbod wrote:
> > > I have a hard time imagining why you hit it at all though, as only
> > > interactive bash should run bashrc which in turn calls
> > > into /etc/profile.d, or am I missing something?
> >
> > /etc/profile.d/*.sh are sourced from /etc/profile, not bashrc.
>
> Actually, the /etc/profile.d/*.sh files are executed by /etc/profile
> when it is a login shell, and by /etc/bashrc when it is not a login
> shell......

Yes, thanks for setting the record straight.

One more nit for completeness: according to the bash man page ~/.bashrc (which 
sources /etc/bashrc in Fedora) is interactive shell only stuff, so sourcing 
profile.d stuff from /etc/bashrc happens only for interactive, non-login 
shells.  The man page doesn't mention /etc/bashrc at all so I suppose bash 
doesn't read it directly.




More information about the fedora-devel-list mailing list