From: Lennart Poettering Date: Mon, 11 Apr 2016 16:20:02 +0000 (+0200) Subject: core: keep track of the mtime of the transient unit file we wrote X-Git-Tag: v230~185^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9ba08fb4fcd64aaf6896d8a5b586180f244fcb7;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/core/unit.c b/src/core/unit.c index 08f3288776c..fb88260d230 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -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) {