Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Add support for systemd EnvironmentFile directive #46

Open
MiguelV-dev opened this issue Sep 14, 2017 · 1 comment
Open

Add support for systemd EnvironmentFile directive #46

MiguelV-dev opened this issue Sep 14, 2017 · 1 comment

Comments

@MiguelV-dev
Copy link

I know that an "environment" attribute already exists but it does not fit my needs.

I would like to use the systemd EnvironmentFile directive, in order to modify the environment variables dynamically. After modifying the file I would reload the service configuration and restart the service.

For example, for systemd, here is what I would like to do:

poise_service 'myapp' do
  provider :systemd
  command 'mycommand'
  environment_file '/path/to/my/env.file'
end

And then the systemd template would generate the following:

...
[Service]
EnvironmentFile=/path/to/my/env.file
...

Thanks.

@phubner
Copy link

phubner commented Dec 21, 2017

I was looking for this capability recently as well. Would be nice to add to the options variable for systemd.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants