{
    "mode": "man",
    "parameter": "runit-init",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/runit-init/8/json",
    "generated": "2026-06-02T20:21:54Z",
    "synopsis": "init [ 0 | 6 ]",
    "sections": {
        "NAME": {
            "content": "init - a UNIX process no 1\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "init [ 0 | 6 ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "runit-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",
            "subsections": []
        },
        "EXIT CODES": {
            "content": "runit-init returns 111 on error, 0 in all other cases.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "runit(8), runsvdir(8), runsvchdir(8), sv(8), runsv(8), chpst(8), utmpset(8), svlogd(8)\n\nhttp://smarden.org/runit/\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Gerrit Pape <pape@smarden.org>\n\n\n\nrunit-init(8)",
            "subsections": []
        }
    },
    "summary": "init - a UNIX process no 1",
    "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"
        }
    ]
}