]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: keep track of the mtime of the transient unit file we wrote
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Apr 2016 16:20:02 +0000 (18:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:33 +0000 (13:43 +0200)
Otherwise "systemctl status" will immediately report that our unit file is out
of date.

src/core/unit.c

index 08f3288776ca83ca20eeb29dd39033bbd041bf21..fb88260d2301c6e23c46ec940752345e9ef88866 100644 (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) {