From: DongShengyuan <545258830@qq.com> Date: Fri, 10 Jul 2026 08:35:19 +0000 (+0800) Subject: run: recognize clock change timer properties (#42949) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efbe570a12716d167c8f13b7d6558fc75042fcd6;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/run/run.c b/src/run/run.c index 068e0cc29fe..63c0718ad94 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; }