diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index 642ca6eeabb..39823c8675a 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -1842,11 +1842,11 @@ int bus_exec_context_set_transient_property( if (streq(name, "StandardErrorFile")) { c->std_error = EXEC_OUTPUT_FILE; - unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "StandardOutput=file:%s", s); + unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "StandardError=file:%s", s); } else { assert(streq(name, "StandardErrorFileToAppend")); c->std_error = EXEC_OUTPUT_FILE_APPEND; - unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "StandardOutput=append:%s", s); + unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "StandardError=append:%s", s); } } }