systemd disables the start timeout of Type=oneshot units by default (systemd.service: TimeoutStartSec), and RuntimeMaxSec does not apply to them, so a hung oneshot unit ran forever. system_service_tpl_timeout_start_sec now renders SYS_SERVICE_DEFAULT_RUNTIME (86400s) for oneshot units and stays empty for every other type, so roles that pass their own cap (sys-ctl-hlth-csp, sys-ctl-hlth-webserver, sys-ctl-cln-bkps) keep it. The comment that called the empty value intended is gone.
Tests: test_oneshot_start_timeout.py renders the expression from vars/main.yml: a oneshot unit gets the default runtime, a simple unit keeps the manager default (2 passed; negative control on main: 1 failed). quality-high green on this tree (test 4/4, lint 15/15).
Residual: a backup oneshot that runs longer than 24 h is now stopped; the prod hlth-runtime durations decide the per-role cap.
🎯 Fix: 92 %
💥 Break: 5 %
💸 Cost: –
⏱️ Time: –
🛡️ Security: 100 %
🏆 Score: 87
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>