coreos / fleet

fleet ties together systemd and etcd into a distributed init system
Apache License 2.0
2.42k stars 303 forks source link

systemd: get dbus connection directly in NewSystemdUnitManager #1635

Closed dongsupark closed 7 years ago

dongsupark commented 7 years ago

Let's get dbus connection directly inside NewSystemdUnitManager, instead of calling a separate function createDbusConnection().

Suggested by @jonboulle. See https://github.com/coreos/fleet/pull/1393#discussion_r70782867 /cc @hmalphettes

jonboulle commented 7 years ago

lgtm