>_ IzzyLab

Topic breakdown

"The first line of the file" is literally line #1 by count, including blank lines and invisible whitespace at the top: if a blank line or an extra space sneaks in above, the tool reading the first line (head -n1, sed -n '1p', read) will grab something quite different from what the eye sees. So before editing the config, it's worth looking at how exactly the consumer reads it, and viewing the file with lines and special characters shown explicitly (cat -n, cat -A) rather than guessing. The general troubleshooting principle here is to reproduce the problem with your own eyes before the edit and re-verify the output afterwards, rather than trusting the description.

What's checked

  1. Service prints env=prod
  2. No old setting left in the config

What it looks like