Interview Prep/Linux/Processes, Signals & systemd

What do Restart= options do and what limits restarts?

IntermediateConceptProcesses, Signals & systemd
Answer

Restart= can be no, on-failure (non-zero exit, signal, timeout, watchdog), on-abnormal, on-abort, or always. RestartSec= sets the delay. Restart loops are limited by StartLimitIntervalSec= and StartLimitBurst= in [Unit] (default 5 starts in 10 s); after that the unit enters failed with "start request repeated too quickly". Clear with systemctl reset-failed api.

All Linux questions Roadmap: Linux

More on Processes, Signals & systemd