runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

utmpset.8 (1083B)


      1 .TH utmpset 8
      2 .SH NAME
      3 utmpset \- logout a line from utmp and wtmp file
      4 .SH SYNOPSIS
      5 .B utmpset
      6 [
      7 .B \-w
      8 ]
      9 .I line
     10 .SH DESCRIPTION
     11 The
     12 .B utmpset
     13 program modifies the user accounting database
     14 .BR utmp (5)
     15 and optionally
     16 .BR wtmp (5)
     17 to indicate that the user on the terminal
     18 .I line
     19 has logged out.
     20 .P
     21 Ordinary
     22 .BR init (8)
     23 processes handle utmp file records for local login accounting.
     24 The
     25 .BR runit (8)
     26 program doesn't include code to update the utmp file, the
     27 .BR getty (8)
     28 processes are handled the same as all other services.
     29 .P
     30 To enable local login accounting, add
     31 .B utmpset
     32 to the
     33 .BR getty (8)
     34 .I finish
     35 scripts, e.g.:
     36 .P
     37  $ cat /service/getty-5/finish
     38  #!/bin/sh
     39  exec utmpset \-w tty5
     40  $
     41 .SH OPTIONS
     42 .TP
     43 .B \-w
     44 wtmp. Additionally to the utmp file, write an empty record for
     45 .I line
     46 to the wtmp file.
     47 .SH EXIT CODES
     48 .B utmpset
     49 returns 111 on error, 1 on wrong usage, 0 in all other cases.
     50 .SH SEE ALSO
     51 sv(8),
     52 runsv(8),
     53 runit(8),
     54 runit-init(8)
     55 runsvdir(8),
     56 runsvchdir(8),
     57 chpst(8),
     58 svlogd(8),
     59 getty(8)
     60 .P
     61 http://smarden.org/runit/
     62 .SH AUTHOR
     63 Gerrit Pape <pape@smarden.org>