utmpset.8.html (2091B)
1 2 3 4 <html> 5 <head> 6 <title>utmpset(8) manual page</title> 7 </head> 8 <body bgcolor='white'> 9 <a href='http://smarden.org/pape/'>G. Pape</a><br><a href='index.html'>runit</A><hr><p> 10 11 <h2><a name='sect0'>Name</a></h2> 12 utmpset - logout a line from utmp and wtmp file 13 <h2><a name='sect1'>Synopsis</a></h2> 14 <b>utmpset</b> [ <b>-w</b> 15 ] <i>line</i> 16 <h2><a name='sect2'>Description</a></h2> 17 The <b>utmpset</b> program modifies the user accounting database 18 <i><b>utmp</b>(5)</i> and optionally <i><b>wtmp</b>(5)</i> to indicate that the user on the terminal 19 <i>line</i> has logged out. <p> 20 Ordinary <i><b>init</b>(8)</i> processes handle utmp file records 21 for local login accounting. The <i><b>runit</b>(8)</i> program doesn’t include code to 22 update the utmp file, the <i><b>getty</b>(8)</i> processes are handled the same as all 23 other services. <p> 24 To enable local login accounting, add <b>utmpset</b> to the <i><b>getty</b>(8)</i> 25 <i>finish</i> scripts, e.g.: <p> 26 $ cat /service/getty-5/finish<br> 27 #!/bin/sh<br> 28 exec utmpset -w tty5<br> 29 $<br> 30 31 <h2><a name='sect3'>Options</a></h2> 32 33 <dl> 34 35 <dt><b>-w</b> </dt> 36 <dd>wtmp. Additionally to the utmp file, write an empty record for 37 <i>line</i> to the wtmp file. </dd> 38 </dl> 39 40 <h2><a name='sect4'>Exit Codes</a></h2> 41 <b>utmpset</b> returns 111 on error, 1 on wrong 42 usage, 0 in all other cases. 43 <h2><a name='sect5'>See Also</a></h2> 44 <i>sv(8)</i>, <i>runsv(8)</i>, <i>runit(8)</i>, <i>runit-init(8)</i> 45 <i>runsvdir(8)</i>, <i>runsvchdir(8)</i>, <i>chpst(8)</i>, <i>svlogd(8)</i>, <i>getty(8)</i> <p> 46 <i>http://smarden.org/runit/</i> 47 48 <h2><a name='sect6'>Author</a></h2> 49 Gerrit Pape <pape@smarden.org> <p> 50 51 <hr><p> 52 <a name='toc'><b>Table of Contents</b></a><p> 53 <ul> 54 <li><a name='toc0' href='#sect0'>Name</a></li> 55 <li><a name='toc1' href='#sect1'>Synopsis</a></li> 56 <li><a name='toc2' href='#sect2'>Description</a></li> 57 <li><a name='toc3' href='#sect3'>Options</a></li> 58 <li><a name='toc4' href='#sect4'>Exit Codes</a></li> 59 <li><a name='toc5' href='#sect5'>See Also</a></li> 60 <li><a name='toc6' href='#sect6'>Author</a></li> 61 </ul> 62 </body> 63 </html>