From: Lukas Nykryn Date: Tue, 9 Sep 2025 13:24:22 +0000 (+0200) Subject: timer: don't run service immediately after restart of a timer X-Git-Tag: v258.1~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c058ff41cb24a1cce7bbe574f072bf3c35533913;p=thirdparty%2Fsystemd.git timer: don't run service immediately after restart of a timer When a timer is restarted, don't reset the last_trigger field. This prevents the timer from triggering immediately. Fixes: #31231 (cherry picked from commit 3fc44a0f68412b649e16f12ff2f97a36c615457d) --- diff --git a/src/core/timer.c b/src/core/timer.c index a45e0c393fe..2e0a8a17c3d 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -664,8 +664,6 @@ static int timer_start(Unit *u) { if (r < 0) return r; - t->last_trigger = DUAL_TIMESTAMP_NULL; - /* Reenable all timers that depend on unit activation time */ LIST_FOREACH(value, v, t->values) if (v->base == TIMER_ACTIVE)