conmon: Fix logic for enabling systemd cgroups

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-04-21 14:20:17 -07:00
parent 5dd2e10028
commit e395afe093

View file

@ -358,7 +358,7 @@ int main(int argc, char *argv[])
cmd = g_string_new(runtime_path);
/* Generate the cmdline. */
if (exec && systemd_cgroup)
if (!exec && systemd_cgroup)
g_string_append_printf(cmd, " --systemd-cgroup");
if (exec)