HomeFreeBSD

init(8): set environment variables from the "daemon" class as well

Description

init(8): set environment variables from the "daemon" class as well

Specifically, when running /etc/rc. This allows one to specify via
login.conf(5) an environment that should be used when running services to
ease, e.g., setting up env vars for an HTTP proxy consistently across cron
and services alike.

Future changes will extend cron(8)/service(8) to use environment vars
pecified in login.conf(5) as well to promote a more cohesive experience.

This is a part of D21481.

(cherry picked from commit 21c1a93c048fdd9c276899e72dcb8dc93cc18e09)

Details

Provenance
andrew_tao173.riddles.org.ukAuthored on Feb 5 2020, 4:27 AM
kevansCommitted on Feb 4 2021, 3:14 AM
Parents
rGd6898bc06ae9: login.conf(5): set a default PATH for the daemon class
Branches
Unknown
Tags
Unknown