mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
core/dbus-service: write PIDFile= setting to transient unit file
Follow-up for a9353a5c5b
.
This commit is contained in:
parent
b8055c05e2
commit
c79d66fc7e
@ -340,9 +340,13 @@ static int bus_service_set_transient_property(
|
||||
if (!UNIT_WRITE_FLAGS_NOOP(flags))
|
||||
log_unit_notice(u, "Transient unit's PIDFile= property references path below legacy directory /var/run, updating %s → %s; please update client accordingly.", n, z);
|
||||
|
||||
free_and_replace(s->pid_file, z);
|
||||
} else
|
||||
free_and_replace(n, z);
|
||||
}
|
||||
|
||||
if (!UNIT_WRITE_FLAGS_NOOP(flags)) {
|
||||
free_and_replace(s->pid_file, n);
|
||||
unit_write_settingf(u, flags, name, "%s=%s", name, s->pid_file);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user