1
0
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:
Lennart Poettering 2016-04-11 18:20:02 +02:00
parent 1e555cb52b
commit f9ba08fb4f

View File

@ -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) {