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.
More on Processes, Signals & systemd
What is the difference between a program, a process and a thread?BeginnerHow are new processes created in Linux?IntermediateWhat is a zombie process, and how do you get rid of it?IntermediateWhat is an orphan process?BeginnerExplain the process states shown in ps (R, S, D, T, Z).IntermediateWhy can't you kill a process in D state?Advanced