Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd.services.<service>.serviceConfig should support multiple entries per option #18838

Closed
Mic92 opened this issue Sep 22, 2016 · 2 comments
Closed

Comments

@Mic92
Copy link
Member

Mic92 commented Sep 22, 2016

Issue description

There are several options like ExecStart, DeviceAllow, or Environment
which can be specified multiple times in systemd units,
where nix only allow one instances due type restrictions.
This leads to ugly workarounds, when multiple entries would be needed (example: #17933, #18822).

The only idea I had, was to support lists as arguments as well,
as single arguments. However this reminds a little bit of perl, where functions act different depending
on the argument type passed, so this may lead to unpleasant surprises.

Any ideas?

@ericsagnes
Copy link
Contributor

I didn't tried with DeviceAllow and Environment, but for ExecStart it is possible to use a list for multiple lines. (In #17933 script is a deliberate choice for the flexibility it brings)

@Mic92
Copy link
Member Author

Mic92 commented Sep 22, 2016

ups, you are right.

@Mic92 Mic92 closed this as completed Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants