|utmpset(8)||System Manager's Manual||utmpset(8)|
utmpset - logout a line from utmp and wtmp file
utmpset [ -w ] line
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
exec utmpset -w tty5
- wtmp. Additionally to the utmp file, write an empty record for line to the wtmp file.
utmpset returns 111 on error, 1 on wrong usage, 0 in all other cases.
Gerrit Pape <email@example.com>