envini(8)

πŸ“¦ version 1.11, in alpine 3.24

🌸 NAME 🌸

envini β€” runs another program with its environment modified according to an ini file in a specified directory. That’s literally the whole glow-up: read your ini, set your env, launch your child process. πŸ’…

✨ SYNOPSIS ✨

envini [ -p prefix ] f child

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here’s the vibe: f is a single argument. child is one or more arguments. Bestie, don’t mix them up.

envini sets a bunch of environment variables exactly as the ini file named f says, then runs child. Main character behavior, honestly.

It reads and parses f one line at a time. Very chill, very line-by-line.

  • Lines shaped like [s] set a section prefix. After that, all subsequent environment variable names get prefixed with s_. Before the first section shows up, the prefix is empty. πŸŽ€
  • Lines shaped like n=v add an environment variable named pn, where p is the section prefix from above. Spaces and tabs at the start and end of the variable are removed. Trimmed and snatched. ✨
  • All other lines are ignored. Not every line gets to be part of the story, and that’s okay. πŸ’€

πŸ’– OPTIONS πŸ’–

  • -p prefix β€” Prefix all environment variable names with prefix. That’s it, that’s the option. πŸ‘‘

🌈 EXIT CODES 🌈

envini exits 111 if it has trouble reading f, if it runs out of memory for environment variables, or if it cannot run child. Big yikes if you see 111.

Otherwise, its exit code is the same as that of child. So if your child exits with a number, envini is matching its energy. 🫢

πŸ”₯ SEE ALSO πŸ”₯

envdir(8), envini(8), envuidgid(8), fghack(8), multilog(8), pgrphack(8), readproctitle(8), setlock(8) setuidgid(8), setuser(8), softlimit(8), supervise(8), svc(8), svok(8), svscan(8), svscanboot(8), svstat(8), tai64n(8), tai64nlocal(8).

Yes, envini(8) is listed in its own SEE ALSO. Self-reference is iconic. Also the original list has setlock(8) and setuidgid(8) smooshed together without a comma, so we’re keeping that exact chaotic energy. πŸŒ€

That’s the envini(8) page, bestie β€” from the System Manager’s Manual. The footer was just envini(8) and had no date/version line to report, so no fake date, no fake version, just vibes. πŸ’–βœ¨

πŸ“¦ where this page comes from