I think we should try to communicate clearly if something is a run0
session, or a systemd-run invocation. Hence, let's initialize the
description so that the command is prefixed by
program_invocation_short_name.
Effectively this means that our run0 sessions now appear as services
with a description of "[run0] -/bin/bash"
}
if (!arg_description) {
- char *t;
+ _cleanup_free_ char *t = NULL;
if (strv_isempty(arg_cmdline))
t = strdup(arg_unit);
if (!t)
return log_oom();
- free_and_replace(arg_description, t);
+ arg_description = strjoin("[", program_invocation_short_name, "] ", t);
+ if (!arg_description)
+ return log_oom();
}
/* For backward compatibility reasons env var expansion is disabled by default for scopes, and