{
    "content": [
        {
            "type": "text",
            "text": "# runit-init(8) (man)\n\n**Summary:** init - a UNIX process no 1\n\n**Synopsis:** init [ 0 | 6 ]\n\n## See Also\n\n- runit(8)\n- runsvdir(8)\n- runsvchdir(8)\n- sv(8)\n- runsv(8)\n- chpst(8)\n- utmpset(8)\n- svlogd(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (16 lines)\n- **EXIT CODES** (2 lines)\n- **SEE ALSO** (4 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\ninit - a UNIX process no 1\n\n### SYNOPSIS\n\ninit [ 0 | 6 ]\n\n### DESCRIPTION\n\nrunit-init is the first process the kernel starts.  If runit-init is started as process no 1,\nit runs and replaces itself with runit(8).\n\nIf runit-init is started while the system is up, it must be either called as init 0  or  init\n6:\n\ninit 0 tells  the  Unix process no 1 to shutdown and halt the system.  To signal runit(8) the\nsystem halt request, runit-init removes all permissions of the file  /run/runit.reboot\n(chmod  0),  and  sets  the  execute by owner permission of the file /run/runit.stopit\n(chmod 100).  Then a CONT signal is sent to runit(8).\n\ninit 6 tells the Unix process no 1 to shutdown and reboot the system.  To signal runit(8) the\nsystem  reboot  request,  runit-init sets the execute by owner permission of the files\n/run/runit.reboot and /run/runit.stopit (chmod 100). Then a CONT  signal  is  sent  to\nrunit(8).\n\n### EXIT CODES\n\nrunit-init returns 111 on error, 0 in all other cases.\n\n### SEE ALSO\n\nrunit(8), runsvdir(8), runsvchdir(8), sv(8), runsv(8), chpst(8), utmpset(8), svlogd(8)\n\nhttp://smarden.org/runit/\n\n### AUTHOR\n\nGerrit Pape <pape@smarden.org>\n\n\n\nrunit-init(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "runit-init",
        "section": "8",
        "mode": "man",
        "summary": "init - a UNIX process no 1",
        "synopsis": "init [ 0 | 6 ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "runit",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/runit/8/json"
            },
            {
                "name": "runsvdir",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/runsvdir/8/json"
            },
            {
                "name": "runsvchdir",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/runsvchdir/8/json"
            },
            {
                "name": "sv",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/sv/8/json"
            },
            {
                "name": "runsv",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/runsv/8/json"
            },
            {
                "name": "chpst",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/chpst/8/json"
            },
            {
                "name": "utmpset",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/utmpset/8/json"
            },
            {
                "name": "svlogd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/svlogd/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "EXIT CODES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}