{
    "content": [
        {
            "type": "text",
            "text": "# systemd-reboot.service(8) (man)\n\n**Summary:** systemd-halt.service, systemd-poweroff.service, systemd-reboot.service, systemd- kexec.service, systemd-shutdown - System shutdown logic\n\n**Synopsis:** systemd-halt.service\nsystemd-poweroff.service\nsystemd-reboot.service\nsystemd-kexec.service\n/lib/systemd/systemd-shutdown\n/lib/systemd/system-shutdown/\n\n## See Also\n\n- systemd(1)\n- systemctl(1)\n- systemd.special(7)\n- reboot(2)\n- systemd-suspend.service(8)\n- bootup(7)\n- SYSTEMD-HALT.SERVICE(8)\n\n## Section Outline\n\n- **NAME** (3 lines)\n- **SYNOPSIS** (12 lines)\n- **DESCRIPTION** (25 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\nsystemd-halt.service, systemd-poweroff.service, systemd-reboot.service, systemd-\nkexec.service, systemd-shutdown - System shutdown logic\n\n### SYNOPSIS\n\nsystemd-halt.service\n\nsystemd-poweroff.service\n\nsystemd-reboot.service\n\nsystemd-kexec.service\n\n/lib/systemd/systemd-shutdown\n\n/lib/systemd/system-shutdown/\n\n### DESCRIPTION\n\nsystemd-halt.service is a system service that is pulled in by halt.target and is responsible\nfor the actual system halt. Similarly, systemd-poweroff.service is pulled in by\npoweroff.target, systemd-reboot.service by reboot.target and systemd-kexec.service by\nkexec.target to execute the respective actions.\n\nWhen these services are run, they ensure that PID 1 is replaced by the\n/lib/systemd/systemd-shutdown tool which is then responsible for the actual shutdown. Before\nshutting down, this binary will try to unmount all remaining file systems, disable all\nremaining swap devices, detach all remaining storage devices and kill all remaining\nprocesses.\n\nIt is necessary to have this code in a separate binary because otherwise rebooting after an\nupgrade might be broken — the running PID 1 could still depend on libraries which are not\navailable any more, thus keeping the file system busy, which then cannot be re-mounted\nread-only.\n\nImmediately before executing the actual system halt/poweroff/reboot/kexec systemd-shutdown\nwill run all executables in /lib/systemd/system-shutdown/ and pass one arguments to them:\neither \"halt\", \"poweroff\", \"reboot\" or \"kexec\", depending on the chosen action. All\nexecutables in this directory are executed in parallel, and execution of the action is not\ncontinued before all executables finished.\n\nNote that systemd-halt.service (and the related units) should never be executed directly.\nInstead, trigger system shutdown with a command such as \"systemctl halt\" or suchlike.\n\n### SEE ALSO\n\nsystemd(1), systemctl(1), systemd.special(7), reboot(2), systemd-suspend.service(8),\nbootup(7)\n\n\n\nsystemd 249                                                                  SYSTEMD-HALT.SERVICE(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "systemd-reboot.service",
        "section": "8",
        "mode": "man",
        "summary": "systemd-halt.service, systemd-poweroff.service, systemd-reboot.service, systemd- kexec.service, systemd-shutdown - System shutdown logic",
        "synopsis": "systemd-halt.service\nsystemd-poweroff.service\nsystemd-reboot.service\nsystemd-kexec.service\n/lib/systemd/systemd-shutdown\n/lib/systemd/system-shutdown/",
        "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": "systemctl",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemctl/1/json"
            },
            {
                "name": "systemd.special",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/systemd.special/7/json"
            },
            {
                "name": "reboot",
                "section": "2",
                "url": "https://www.chedong.com/phpMan.php/man/reboot/2/json"
            },
            {
                "name": "systemd-suspend.service",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/systemd-suspend.service/8/json"
            },
            {
                "name": "bootup",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/bootup/7/json"
            },
            {
                "name": "SYSTEMD-HALT.SERVICE",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/SYSTEMD-HALT.SERVICE/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 25,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}