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

dbus properties are missing the Environment key. #434

Open
jonnylangefeld opened this issue Feb 2, 2024 · 0 comments
Open

dbus properties are missing the Environment key. #434

jonnylangefeld opened this issue Feb 2, 2024 · 0 comments

Comments

@jonnylangefeld
Copy link

I'm using transient units and properties to run units. The function call takes a dbus.Property slice:

func (c *Conn) StartTransientUnitContext(ctx context.Context, name string, mode string, properties []Property, ch chan<- string) (int, error) {

I got it working to run a basic binary. But I'm trying to replicate this from a unit file:

Environment="ONE=one" 'TWO=two two'
ExecStart=echo $ONE $TWO ${TWO}

Es described in the docs. But unfortunately there is no PropEnvironment in the debus properties file:
https://github.com/coreos/go-systemd/blob/main/dbus/properties.go#L37.

It would be great if that could be added.

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

1 participant