Best way to set up some context on boot

Hello all,
I would like my set up some context at the beginning of a boot.
[start-up-trigger] -----[change]
Is this the best way to do it?

Or if it is something that is fixed (so more like a global constant of some sort, maybe configuration information) then you can put it in functionGlobalContext in settings.js. Alternatively using environment variables might be more appropriate.

Thank you!