Skip to content

Remove service start timeout

Stefan Brüns requested to merge work/bruns/remove_service_start_timeout into master

(Same as polkit-kde-agent-1!35 (merged))

On a slow machine the service may take longer than 5 seconds (walltime) to start, especially during session start when multiple processes are competing for CPU time and I/O.

The original reasoning for the timeout is to limit the time to quit the process when the session is shut down, but that can be set with TimeoutStopSec.

Remove the start timeout, as it is questionable if is useful at all. It only helps if there is some deadlock during startup which would be cured by a fresh start, otherwise it is just consuming CPU time again and again.

For comparison, Gnome does not use Timeout[Start]Sec at all, but only TimeoutStopSec.

CCBUG: 477805

Edited by Stefan Brüns

Merge request reports