Print this page
5375 utmpd(1M) core dumps when WTMPX_UPDATE_FREQ is zero

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/utmpd.1m
          +++ new/usr/src/man/man1m/utmpd.1m
   1    1  '\" te
        2 +.\" Copyright 2015 Shruti V Sampat <shrutisampat@gmail.com>
   2    3  .\" Copyright (c) 2004, Sun Microsystems, Inc.  All Rights Reserved
   3    4  .\" Copyright 1989 AT&T
   4    5  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5    6  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6    7  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7      -.TH UTMPD 1M "Jun 4, 2008"
        8 +.TH UTMPD 1M "Jan 01, 2015"
   8    9  .SH NAME
   9   10  utmpd \- utmpx monitoring daemon
  10   11  .SH SYNOPSIS
  11   12  .LP
  12   13  .nf
  13   14  \fButmpd\fR [\fB-debug\fR]
  14   15  .fi
  15   16  
  16   17  .SH DESCRIPTION
  17      -.sp
  18   18  .LP
  19   19  The \fButmpd\fR daemon monitors the \fB/var/adm/utmpx\fR file. See
  20   20  \fButmpx\fR(4) (and \fButmp\fR(4) for historical information).
  21   21  .sp
  22   22  .LP
  23   23  \fButmpd\fR receives requests from \fBpututxline\fR(3C) by way of a named pipe.
  24   24  It maintains a table of processes and uses \fBpoll\fR(2) on \fB/proc\fR files
  25   25  to detect process termination. When \fButmpd\fR detects that a process has
  26   26  terminated, it checks that the process has removed its \fButmpx\fR entry from
  27   27  \fB/var/adm/utmpx\fR. If the process' \fButmpx\fR entry has not been removed,
  28   28  \fButmpd\fR removes the entry. By periodically scanning the
  29   29  \fB/var/adm/utmpx\fR file, \fButmpd\fR also monitors processes that are not in
  30   30  its table.
  31   31  .SH OPTIONS
  32      -.sp
  33   32  .ne 2
  34   33  .na
  35   34  \fB\fB-debug\fR\fR
  36   35  .ad
  37   36  .sp .6
  38   37  .RS 4n
  39   38  Run in debug mode, leaving the process connected to the controlling terminal.
  40   39  Write debugging information to standard output.
  41   40  .RE
  42   41  
  43   42  .SH EXIT STATUS
  44      -.sp
  45   43  .LP
  46   44  The following exit values are returned:
  47   45  .sp
  48   46  .ne 2
  49   47  .na
  50   48  \fB\fB0\fR\fR
  51   49  .ad
  52   50  .sp .6
  53   51  .RS 4n
  54   52  Successful completion.
↓ open down ↓ 3 lines elided ↑ open up ↑
  58   56  .ne 2
  59   57  .na
  60   58  \fB\fB>0\fR\fR
  61   59  .ad
  62   60  .sp .6
  63   61  .RS 4n
  64   62  An error occurred.
  65   63  .RE
  66   64  
  67   65  .SH FILES
  68      -.sp
  69   66  .ne 2
  70   67  .na
  71   68  \fB\fB/etc/default/utmpd\fR\fR
  72   69  .ad
  73   70  .sp .6
  74   71  .RS 4n
  75   72  You can set default values for the flags listed below. For example:
  76   73  \fBSCAN_PERIOD=600\fR
  77   74  .sp
       75 +The values for these flags should be greater than 0. If values read
       76 +from the file are found to be less than or equal to 0, or containing
       77 +invalid characters, the default values mentioned below are retained.
       78 +.sp
  78   79  .ne 2
  79   80  .na
  80   81  \fB\fBSCAN_PERIOD\fR\fR
  81   82  .ad
  82   83  .sp .6
  83   84  .RS 4n
  84   85  The number of seconds that \fButmpd\fR sleeps between checks of \fB/proc\fR to
  85   86  see if monitored processes are still alive. The default is 300.
  86   87  .RE
  87   88  
↓ open down ↓ 39 lines elided ↑ open up ↑
 127  128  .na
 128  129  \fB\fB/proc\fR\fR
 129  130  .ad
 130  131  .sp .6
 131  132  .RS 4n
 132  133  Directory containing files for processes whose \fButmpx\fR entries are being
 133  134  monitored.
 134  135  .RE
 135  136  
 136  137  .SH SEE ALSO
 137      -.sp
 138  138  .LP
 139  139  \fBsvcs\fR(1), \fBinit\fR(1M), \fBsvcadm\fR(1M), \fBpoll\fR(2),
 140  140  \fBpututxline\fR(3C), \fBproc\fR(4), \fButmp\fR(4), \fButmpx\fR(4),
 141  141  \fBattributes\fR(5), \fBsmf\fR(5)
 142  142  .SH NOTES
 143      -.sp
 144  143  .LP
 145  144  If the filesystem holding \fB/var/adm/wtmpx\fR is mounted with options which
 146  145  inhibit or defer access time updates, an unknown amount of error will be
 147  146  introduced into the \fButmp\fR \fBDOWN_TIME\fR record's timestamp in the event
 148  147  of an uncontrolled shutdown (for example, a crash or loss of power ).
 149  148  Controlled shutdowns will update the modify time of \fB/var/adm/wtmpx\fR, which
 150  149  will be used on the next boot to determine when the previous shutdown ocurred,
 151  150  regardless of access time deferral or inhibition.
 152  151  .sp
 153  152  .LP
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX