{
    "content": [
        {
            "type": "text",
            "text": "# systemd-logind.service (info)\n\n## NAME\n\nsystemd-logind.service, systemd-logind - Login manager\n\n## SYNOPSIS\n\nsystemd-logind.service\n/lib/systemd/systemd-logind\n\n## DESCRIPTION\n\nsystemd-logind is a system service that manages user logins. It is\nresponsible for:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n- **NOTES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "systemd-logind.service",
        "section": "",
        "mode": "info",
        "summary": "systemd-logind.service, systemd-logind - Login manager",
        "synopsis": "systemd-logind.service\n/lib/systemd/systemd-logind",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "systemd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
            },
            {
                "name": "systemd-user-sessions.service",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/systemd-user-sessions.service/8/json"
            },
            {
                "name": "loginctl",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/loginctl/1/json"
            },
            {
                "name": "logind.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/logind.conf/5/json"
            },
            {
                "name": "pamsystemd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pamsystemd/8/json"
            },
            {
                "name": "sd-login",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/sd-login/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 51,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 13,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "systemd-logind.service, systemd-logind - Login manager\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "systemd-logind.service\n\n/lib/systemd/systemd-logind\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "systemd-logind is a system service that manages user logins. It is\nresponsible for:\n\no   Keeping track of users and sessions, their processes and their idle\nstate. This is implemented by allocating a systemd slice unit for\neach user below user.slice, and a scope unit below it for each\nconcurrent session of a user. Also, a per-user service manager is\nstarted as system service instance of user@.service for each logged\nin user.\n\no   Generating and managing session IDs. If auditing is available and\nan audit session ID is already set for a session, then this ID is\nreused as the session ID. Otherwise, an independent session counter\nis used.\n\no   Providing polkit[1]-based access for users for operations such as\nsystem shutdown or sleep\n\no   Implementing a shutdown/sleep inhibition logic for applications\n\no   Handling of power/sleep hardware keys\n\no   Multi-seat management\n\no   Session switch management\n\no   Device access management for users\n\no   Automatic spawning of text logins (gettys) on virtual console\nactivation and user runtime directory management\n\nUser sessions are registered with logind via the pamsystemd(8) PAM\nmodule.\n\nSee logind.conf(5) for information about the configuration of this\nservice.\n\nSee sd-login(3) for information about the basic concepts of logind such\nas users, sessions and seats.\n\nSee org.freedesktop.login1(5) and org.freedesktop.LogControl1(5) for\ninformation about the D-Bus APIs systemd-logind provides.\n\nFor more information on the inhibition logic see the Inhibitor Lock\nDeveloper Documentation[2].\n\nIf you are interested in writing a display manager that makes use of\nlogind, please have look at Writing Display Managers[3]. If you are\ninterested in writing a desktop environment that makes use of logind,\nplease have look at Writing Desktop Environments[4].\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "systemd(1), systemd-user-sessions.service(8), loginctl(1),\nlogind.conf(5), pamsystemd(8), sd-login(3)\n",
                "subsections": []
            },
            "NOTES": {
                "content": "1. polkit\nhttps://www.freedesktop.org/wiki/Software/polkit\n\n2. Inhibitor Lock Developer Documentation\nhttps://www.freedesktop.org/wiki/Software/systemd/inhibit\n\n3. Writing Display Managers\nhttps://www.freedesktop.org/wiki/Software/systemd/writing-display-managers\n\n4. Writing Desktop Environments\nhttps://www.freedesktop.org/wiki/Software/systemd/writing-desktop-environments\n\nsystemd 249                                          SYSTEMD-LOGIND.SERVICE(8)",
                "subsections": []
            }
        }
    }
}