]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc.subr: Support loading environmental variables from a file
authorMark Felder <feld@FreeBSD.org>
Fri, 25 May 2018 19:36:26 +0000 (19:36 +0000)
committerMark Felder <feld@FreeBSD.org>
Fri, 25 May 2018 19:36:26 +0000 (19:36 +0000)
commit75a315f6d2a31c61cb3f3da58e44be090c663ff7
tree372aaa33f4022e4909633173c1616e4da20ef4bf
parent13ee81bed53d4f0b1d8e24469e498dfd72bf7e3e
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
etc/rc.subr