What do `systemctl status` states "active (exited)" and "activating (auto-restart)" mean?
IntermediateConceptProcesses, Signals & systemd
Answer
active (exited): a oneshot unit with RemainAfterExit=yes ran successfully and is considered active although no process remains. activating (auto-restart): the process died and systemd is waiting RestartSec before restarting, which usually means a crash loop. Check journalctl -u <unit> -n 50 for the exit reason.
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