{
    "mode": "man",
    "parameter": "svscan",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/svscan/8/json",
    "generated": "2026-06-10T16:22:37Z",
    "synopsis": "svscan [ directory ]",
    "sections": {
        "NAME": {
            "content": "svscan - starts and monitors a collection of services\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "svscan [ directory ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "svscan  starts one supervise(8) process for each subdirectory of the current directory, up to\na limit of 1000 subdirectories.  svscan skips subdirectory names starting with dots.   super‐‐\nvise(8) must be in svscan's path.\n\nsvscan  optionally starts a pair of supervise(8) processes, one for a subdirectory s, one for\ns/log, with a pipe between them. It does this if the name s is at most  255  bytes  long  and\ns/log  exists.  (In  versions 0.70 and below, it does this if s is sticky.)  svscan needs two\nfree descriptors for each pipe.\n\nEvery five seconds, svscan checks for subdirectories again. If it sees a new subdirectory, it\nstarts  a  new  supervise(8)  process.  If  it  sees an old subdirectory where a supervise(8)\nprocess has exited, it restarts the supervise(8) process. In the log case it reuses the  same\npipe so that no data is lost.\n\nsvscan is designed to run forever. If it has trouble creating a pipe or running supervise(8),\nit prints a message to stderr; it will try again five seconds later.\n\nIf svscan is given a command-line argument directory, it switches to that directory  when  it\nstarts.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "supervise(8),  svc(8),  svok(8),  svstat(8), svscanboot(8), readproctitle(8), fghack(8), pgr‐\nphack(8), multilog(8),  tai64n(8),  tai64nlocal(8),  setuidgid(8),  envuidgid(8),  envdir(8),\nsoftlimit(8), setlock(8)\n\nhttp://cr.yp.to/daemontools.html\n\n\n\nsvscan(8)",
            "subsections": []
        }
    },
    "summary": "svscan - starts and monitors a collection of services",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "supervise",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/supervise/8/json"
        },
        {
            "name": "svc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svc/8/json"
        },
        {
            "name": "svok",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svok/8/json"
        },
        {
            "name": "svstat",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svstat/8/json"
        },
        {
            "name": "svscanboot",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svscanboot/8/json"
        },
        {
            "name": "readproctitle",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/readproctitle/8/json"
        },
        {
            "name": "fghack",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/fghack/8/json"
        },
        {
            "name": "phack",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/phack/8/json"
        },
        {
            "name": "multilog",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/multilog/8/json"
        },
        {
            "name": "tai64n",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tai64n/8/json"
        },
        {
            "name": "tai64nlocal",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tai64nlocal/8/json"
        },
        {
            "name": "setuidgid",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/setuidgid/8/json"
        },
        {
            "name": "envuidgid",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/envuidgid/8/json"
        },
        {
            "name": "envdir",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/envdir/8/json"
        },
        {
            "name": "softlimit",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/softlimit/8/json"
        },
        {
            "name": "setlock",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/setlock/8/json"
        }
    ]
}