summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-11 18:20:02 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-12 13:43:33 +0200
commitf9ba08fb4fcd64aaf6896d8a5b586180f244fcb7 (patch)
tree4b6c590923c9577cdc9e9effe8cbafcd3391f973 /src/core
parent1e555cb52b922bda56c918b8b32f7bd557b3489b (diff)
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/unit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 08f3288776..fb88260d23 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) {