diff options
author | Tom Gundersen <teg@jklm.no> | 2015-08-28 12:01:46 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-08-28 12:01:46 +0200 |
commit | 84d449b55215dfe81305d3ee89606fdc17150ad6 (patch) | |
tree | ebb5250b2cedcb493a435119a6f408a1f72b6162 /src/machine/machinectl.c | |
parent | 9c92a077b667fe3947cc8a9caa197dea8b80b8e0 (diff) | |
parent | e049fa164f0062caab6e53113b3fd7102dc739ce (diff) |
Merge pull request #1063 from poettering/dbus-interface-from-type
cgls/cgtop: a variety of modernizations
Diffstat (limited to 'src/machine/machinectl.c')
-rw-r--r-- | src/machine/machinectl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 926035d185..8bd0ed756b 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -361,8 +361,7 @@ static int show_unit_cgroup(sd_bus *bus, const char *unit, pid_t leader) { bus, "org.freedesktop.systemd1", path, - endswith(unit, ".scope") ? "org.freedesktop.systemd1.Scope" : - endswith(unit, ".slice") ? "org.freedesktop.systemd1.Slice" : "org.freedesktop.systemd1.Service", + unit_dbus_interface_from_name(unit), "ControlGroup", &error, &reply, |