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.
This commit is contained in:
DongShengyuan
2026-07-10 17:35:19 +09:00
committed by GitHub
parent 52371dc959
commit efbe570a12
+3 -1
View File
@@ -607,7 +607,9 @@ static int parse_argv(int argc, char *argv[]) {
"OnStartupSec=",
"OnUnitActiveSec=",
"OnUnitInactiveSec=",
"OnCalendar=");
"OnCalendar=",
"OnClockChange=",
"OnTimezoneChange=");
break;
}