From: Jan Macku Date: Thu, 2 Sep 2021 14:50:50 +0000 (+0200) Subject: core: Indicate the time when the manager started loading units the last time X-Git-Tag: v250-rc1~32^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F20476%2Fhead;p=thirdparty%2Fsystemd.git core: Indicate the time when the manager started loading units the last time --- diff --git a/src/core/manager.c b/src/core/manager.c index 2b2406b0185..81d53870562 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1729,6 +1729,11 @@ static void manager_ready(Manager *m) { /* Let's finally catch up with any changes that took place while we were reloading/reexecing */ manager_catchup(m); + /* Create a file which will indicate when the manager started loading units the last time. */ + (void) touch_file("/run/systemd/systemd-units-load", false, + m->timestamps[MANAGER_TIMESTAMP_UNITS_LOAD].realtime ?: now(CLOCK_REALTIME), + UID_INVALID, GID_INVALID, 0444); + m->honor_device_enumeration = true; }