HomeFreeBSD

rc.subr: Support loading environmental variables from a file

Description

rc.subr: Support loading environmental variables from a file

The current support for setting environment via foo_env="" in rc.conf is
not scalable and does not handle envs with spaces in the value. It seems
a common pattern for some newer software is to skip configuration files
altogether and rely on the env. This is well supported in systemd unit
files and may be the inspiration for this trend.

MFH: 1 week
Differential Revision: https://reviews.freebsd.org/D14453

Details

Provenance
feldAuthored on May 25 2018, 7:36 PM
Parents
rG13ee81bed53d: We don't need check if str is NULL as free(3) will handle NULL
Branches
Unknown
Tags
Unknown

Event Timeline