threefoldtech / zinit

A init replacement that feels like runit written in rust+tokio
Apache License 2.0
10 stars 1 forks source link

Add `env` to service settings to support custom environment vars #6

Closed muhamadazmy closed 5 years ago

maxux commented 5 years ago

This become quite urgent since we start using environment variable to override url to bcdb/tno etc. There is a workaround for now, using:

exec: sh -c "MYENV=blabla /bin/mybin -arg1 -arg2"

But this is really ugly :p