[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
Tue Nov 10 10:20:07 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239692

--- Comment #4 from commit-hook at FreeBSD.org ---
A commit references this bug:

Author: 0mp
Date: Tue Nov 10 10:19:55 UTC 2020
New revision: 367550
URL: https://svnweb.freebsd.org/changeset/base/367550

Log:
  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

Changes:
_U  stable/12/
  stable/12/libexec/rc/rc.subr
  stable/12/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