{
    "content": [
        {
            "type": "text",
            "text": "# utmpset (man)\n\n## NAME\n\nutmpset - logout a line from utmp and wtmp file\n\n## SYNOPSIS\n\nutmpset [ -w ] line\n\n## DESCRIPTION\n\nThe  utmpset  program modifies the user accounting database utmp(5) and optionally wtmp(5) to\nindicate that the user on the terminal line has logged out.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (1 subsections)\n- **EXIT CODES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "utmpset",
        "section": "",
        "mode": "man",
        "summary": "utmpset - logout a line from utmp and wtmp file",
        "synopsis": "utmpset [ -w ] line",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-w",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [
            {
                "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": "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": "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": "chpst",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/chpst/8/json"
            },
            {
                "name": "svlogd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/svlogd/8/json"
            },
            {
                "name": "getty",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/getty/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-w",
                        "lines": 1,
                        "flag": "-w"
                    }
                ]
            },
            {
                "name": "EXIT CODES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "utmpset - logout a line from utmp and wtmp file\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "utmpset [ -w ] line\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The  utmpset  program modifies the user accounting database utmp(5) and optionally wtmp(5) to\nindicate that the user on the terminal line has logged out.\n\nOrdinary init(8) processes handle utmp file records for local login accounting.  The runit(8)\nprogram doesn't include code to update the utmp file, the getty(8) processes are handled  the\nsame as all other services.\n\nTo enable local login accounting, add utmpset to the getty(8) finish scripts, e.g.:\n\n$ cat /service/getty-5/finish\n#!/bin/sh\nexec utmpset -w tty5\n$\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-w",
                        "content": "",
                        "flag": "-w"
                    }
                ]
            },
            "EXIT CODES": {
                "content": "utmpset returns 111 on error, 1 on wrong usage, 0 in all other cases.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "sv(8),  runsv(8),  runit(8),  runit-init(8)  runsvdir(8), runsvchdir(8), chpst(8), svlogd(8),\ngetty(8)\n\nhttp://smarden.org/runit/\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Gerrit Pape <pape@smarden.org>\n\nutmpset(8)",
                "subsections": []
            }
        }
    }
}