{
    "mode": "man",
    "parameter": "runsvchdir",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/runsvchdir/8/json",
    "generated": "2026-06-15T13:13:25Z",
    "synopsis": "runsvchdir dir",
    "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": []
        }
    },
    "summary": "runsvchdir - change services directory of runsvdir(8)",
    "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"
        }
    ]
}