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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:

https://github.com/kelseyhightower/confd
https://github.com/hashicorp/envconsul
https://github.com/mattn/etcdenv
https://github.com/GoogleCloudPlatform/kubernetes/issues/2068

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

https://bugs.freedesktop.org/show_bug.cgi?id=62523


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.