{
    "content": [
        {
            "type": "text",
            "text": "# runsvchdir (man)\n\n## NAME\n\nrunsvchdir - change services directory of runsvdir(8)\n\n## SYNOPSIS\n\nrunsvchdir dir\n\n## DESCRIPTION\n\ndir  is  a  services  directory  for  the use with runsvdir(8).  If dir does not start with a\nslash, it is searched in /etc/runit/runsvdir/.  dir must not start with a dot.\n\n## TLDR\n\n> Change the directory `runsvdir` uses by default.\n\n- Switch `runsvdir` directories:\n  `sudo runsvchdir {{path/to/directory}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **EXIT CODES**\n- **FILES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "runsvchdir",
        "section": "",
        "mode": "man",
        "summary": "runsvchdir - change services directory of runsvdir(8)",
        "synopsis": "runsvchdir dir",
        "tldr_summary": "Change the directory `runsvdir` uses by default.",
        "tldr_examples": [
            {
                "description": "Switch `runsvdir` directories",
                "command": "sudo runsvchdir {{path/to/directory}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "runsvdir",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/runsvdir/8/json"
            },
            {
                "name": "runit",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/runit/8/json"
            },
            {
                "name": "runit-init",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/runit-init/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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "EXIT CODES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "runsvchdir - change services directory of runsvdir(8)\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "runsvchdir dir\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "dir  is  a  services  directory  for  the use with runsvdir(8).  If dir does not start with a\nslash, it is searched in /etc/runit/runsvdir/.  dir must not start with a dot.\n\nrunsvchdir switches to the directory /etc/runit/runsvdir/, copies current  to  previous,  and\nreplaces current with a symlink pointing to dir.\n\nNormally /etc/service is a symlink to current, and runsvdir(8) is running /etc/service/.\n",
                "subsections": []
            },
            "EXIT CODES": {
                "content": "runsvchdir prints an error message and exits 111 on error.  runsvchdir exits 0 on success.\n",
                "subsections": []
            },
            "FILES": {
                "content": "/etc/runit/runsvdir/previous\n/etc/runit/runsvdir/current\n/etc/runit/runsvdir/current.new\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "runsvdir(8), runit(8), runit-init(8), sv(8), runsv(8)\n\nhttp://smarden.org/runit/\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Gerrit Pape <pape@smarden.org>\n\n\n\nrunsvchdir(8)",
                "subsections": []
            }
        }
    }
}