{
    "mode": "info",
    "parameter": "utmpset",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/utmpset/json",
    "generated": "2026-08-05T05:44:29Z",
    "synopsis": "utmpset [ -w ] line",
    "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\noptionally wtmp(5) to indicate that the user on the terminal  line  has\nlogged out.\n\nOrdinary init(8) processes handle utmp file records for local login ac-\ncounting.  The runit(8) program doesn't include code to update the utmp\nfile,  the  getty(8)  processes  are handled the same as all other ser-\nvices.\n\nTo enable local login accounting, add utmpset to  the  getty(8)  finish\nscripts, e.g.:\n\n$ cat /service/getty-5/finish\n#!/bin/sh\nexec utmpset -w tty5\n$\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "-w     wtmp.  Additionally  to the utmp file, write an empty record for\nline to the wtmp file.\n",
            "subsections": []
        },
        "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),\nchpst(8), svlogd(8), getty(8)\n\nhttp://smarden.org/runit/\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Gerrit Pape <pape@smarden.org>\n\nutmpset(8)",
            "subsections": []
        }
    },
    "summary": "utmpset - logout a line from utmp and wtmp file",
    "flags": [],
    "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"
        }
    ]
}