Question 60
Which Linux principle best explains this observation: A network daemon is not required but systemd starts it through socket activation after service disable?
Explanation
Correct Answer
The relevant Linux mechanism is Socket activation can launch a service even if its service unit is otherwise inactive. That supports Disable the unnecessary systemd socket unit as well as the associated service where appropriate, then verifying that The unused listening socket disappears and the service remains unavailable after reboot.
Incorrect Answers
The alternative can apply elsewhere, but Socket activation can launch a service even if its service unit is otherwise inactive is the governing fact here; test by checking The unused listening socket disappears and the service remains unavailable after reboot.
The related but distinct situation is “An old host uses xinetd to launch a service that is no longer allowed”. This behavior is explained by xinetd can start daemons on demand through its own configuration. For the stated problem, “Socket activation can launch a service even if its service unit is otherwise inactive” addresses the central condition.
This would be the main explanation for A service listens on all network interfaces though only local clients should use it. It does not account for A network daemon is not required but systemd starts it through socket activation after service disable.