This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Name
utmpset - logout a line from utmp and wtmp file
Synopsis
utmpset [ -w ] line
Description
The utmpset program modifies the user accounting database utmp(5) and optionally wtmp(5) to indicate that the user on the terminal line has logged out.
Ordinary init(8) processes handle utmp file records for local login accounting. The runit(8) program doesn’t include code to update the utmp file, the getty(8) processes are handled the same as all other services.
To enable local login accounting, add utmpset to the getty(8) finish scripts, e.g.:
$ cat /service/getty-5/finish #!/bin/sh exec utmpset -w tty5 $
Options
-w
wtmp. Additionally to the utmp file, write an empty record for line to the wtmp file.
Exit Codes
utmpset returns 111 on error, 1 on wrong usage, 0 in all other cases.
See Also
runit(8), runit-init(8),runsvdir(8), runsvchdir(8), sv(8), runsv(8), chpst(8), svlogd(8)
Authors
Gerrit Pape pape@smarden.org Frank Earl linusti@gmail.com
About runit:
Benefits
Frequently Asked Questions (FAQ)
Building runit:
Setting up runit:
Replacing Init
Running WITH Init
Runlevels
Service Dependencies
Execution Modifiers
Using runit commands:
runit
runit-init
sv
runsvdir
runsvchdir
runsv
svlogd
chpst
utmpset