What is socket activation?
AdvancedConceptProcesses, Signals & systemd
Answer
systemd opens the listening socket itself (defined in a .socket unit) and starts the matching service only when the first connection arrives, passing the open fd to it (sd_listen_fds). Benefits: services start lazily, boot is more parallel, and restarts do not drop connections because the socket stays open in systemd. sshd.socket and docker.socket are examples.
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