mirror of
https://github.com/systemd/systemd.git
synced 2025-03-29 06:50:16 +03:00
core: keep track of the mtime of the transient unit file we wrote
Otherwise "systemctl status" will immediately report that our unit file is out of date.
This commit is contained in:
parent
1e555cb52b
commit
f9ba08fb4f
@ -1243,6 +1243,8 @@ int unit_load(Unit *u) {
|
||||
|
||||
fclose(u->transient_file);
|
||||
u->transient_file = NULL;
|
||||
|
||||
u->dropin_mtime = now(CLOCK_REALTIME);
|
||||
}
|
||||
|
||||
if (UNIT_VTABLE(u)->load) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user