Bug 85709 - RFE: EnvironmentExecutable= or EnvironmentOneshot= that provides environment
Summary: RFE: EnvironmentExecutable= or EnvironmentOneshot= that provides environment
Status: NEW
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
Depends on:
Reported: 2014-10-31 17:52 UTC by rektide
Modified: 2015-02-17 00:45 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description rektide 2014-10-31 17:52:22 UTC
This is rapidly becoming standard practice in container-land- a program which provides Environment for another. This should be supported directly in systemd, rather than requiring each project to cobble together their own executable wrapper.

Programs doing this themselves:


The actual format suggested- an EnvironmentExecutable- is completely negotiable, it merely seemed to be the simplest option to me.

Far more interestingly, perhaps an EnvironmentOneshot could specify a oneshot service whose stdout could be used. This would, to me, be far more complete, as it solves the question of what execution environment to frame the execution environment generator in and allows for all the levels of stupidly recursive one could ever dream.
Comment 1 rektide 2014-10-31 17:58:20 UTC
Also, I would definitely appreciate if specifiers were parsed in.

Related, 'Parse specifiers in EnvironmentFiles as well':


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.