From efbe570a12716d167c8f13b7d6558fc75042fcd6 Mon Sep 17 00:00:00 2001 From: DongShengyuan <545258830@qq.com> Date: Fri, 10 Jul 2026 16:35:19 +0800 Subject: [PATCH] run: recognize clock change timer properties (#42949) --on-clock-change and --on-timezone-change are documented as shortcuts for setting the corresponding timer properties with --timer-property=. However, --timer-property= only treated the monotonic and calendar timer settings as actual timer triggers. OnClockChange= and OnTimezoneChange= were stored as timer properties, but arg_with_timer remained false and the command was rejected as having no timer options. Treat both properties as timer triggers too, matching the shortcut options and the documented equivalent command line. --- src/run/run.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/run/run.c b/src/run/run.c index 068e0cc29f..63c0718ad9 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -607,7 +607,9 @@ static int parse_argv(int argc, char *argv[]) { "OnStartupSec=", "OnUnitActiveSec=", "OnUnitInactiveSec=", - "OnCalendar="); + "OnCalendar=", + "OnClockChange=", + "OnTimezoneChange="); break; }