mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
dbus-execute: generate the correct transient unit setting
This commit is contained in:
parent
dbe6c4b657
commit
1704fba92f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user