>_ IzzyLab

Topic breakdown

An environment variable exists only inside a process and is inherited by its children — an export in your shell won't reach a process started separately and later — from another session, by cron or as a service. So "make the variable visible system-wide" means writing it where the target process will pick it up: options include a file in /etc/profile.d/ (only for interactive login shells), /etc/environment (global, simple KEY=value), or the environment of a specific service. First look into the script itself and understand what exactly it expects from the variable, then pick the mechanism to match how it will be run.

What's checked

  1. APP_CONFIG=/etc/app.conf is set system-wide
  2. run.sh runs successfully
  3. the run.sh script is unchanged

What it looks like