Skip to content

dbus properties are missing the Environment key. #434

Open
@jonnylangefeld

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions