How does getty work with systemd-logind on a linux system? What are their architectures?

I need clarification, since I fail to find a proper explanation on the internet and I don't trust ChatGPT.
What's the difference between linux getty program and systemd-logind? I understand that both are services, in which one is responsible for managing a terminal session and ensuring login, while the other is a system-wide service responsible for managing all users and login-sessions.
What I ask is what is their correlation? Do they work with each other? What is their separate architectures (as objects in systemd system), for example, are each of them services that listen on specific files? When I turn on my computer, and login into the system and get an interactive shell (bash) on which I work (not a graphical target), which of them is interacted with and when during this process?
Take Your Experience to the Next Level
NewDownload our mobile app for a faster and better experience.
Comments
0Join the discussion
Sign in to leave a comment