]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/timer.c
core: add "invocation ID" concept to service manager
[thirdparty/systemd.git] / src / core / timer.c
index e2b43f02f8b12a0d709f52668e902a7c7cb8e3f9..9538059c137f72ae10ab926be0f412dae9c18168 100644 (file)
@@ -616,6 +616,10 @@ static int timer_start(Unit *u) {
                 return r;
         }
 
+        r = unit_acquire_invocation_id(u);
+        if (r < 0)
+                return r;
+
         t->last_trigger = DUAL_TIMESTAMP_NULL;
 
         /* Reenable all timers that depend on unit activation time */
@@ -632,7 +636,7 @@ static int timer_start(Unit *u) {
                         /* The timer has never run before,
                          * make sure a stamp file exists.
                          */
-                        touch_file(t->stamp_path, true, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID);
+                        (void) touch_file(t->stamp_path, true, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID);
         }
 
         t->result = TIMER_SUCCESS;