]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r351863:
authorMateusz Piotrowski <0mp@FreeBSD.org>
Tue, 10 Nov 2020 10:19:55 +0000 (10:19 +0000)
committerMateusz Piotrowski <0mp@FreeBSD.org>
Tue, 10 Nov 2020 10:19:55 +0000 (10:19 +0000)
commit4743ad5dc740ba3ca439979b7af6594806622028
treef6c6d6390b1458fb5723da717d52c92c57e077ce
parentf31a0762dd2e1d30dd16c42ba4bf10b93b0bcbc6
MFC r351863:

rc: Honor ${name}_env when a custom *_cmd is defined (e.g., start_cmd)

A user may set ${name}_env variable in rc.conf(5) in order to set additional
environment variables for a service command.  Unfortunately, at the moment
this variable is only honored when the command is specified via the command
variable. Those additional environment variables coming from ${name}_env
are never set if the service is started via the ${rc_arg}_cmd variable (for
example start_cmd).

PR: 239692
Reviewed by: bcr, jilles
Approved by: src (jilles)
Requested by: koobs
libexec/rc/rc.subr
share/man/man8/rc.subr.8