[Bug 239692] rc: Environment variables set via ${name}_env are not passed to ${rc_arg}_cmd (e.g., start_cmd)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Sep 5 14:53:08 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239692
--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:
Author: 0mp
Date: Thu Sep 5 14:52:23 UTC 2019
New revision: 351863
URL: https://svnweb.freebsd.org/changeset/base/351863
Log:
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)
Differential Revision: https://reviews.freebsd.org/D21228
Changes:
head/libexec/rc/rc.subr
head/share/man/man8/rc.subr.8
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-rc
mailing list