2 .\" Copyright 2015 Shruti V Sampat <shrutisampat@gmail.com>
3 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
4 .\" Copyright 1989 AT&T
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.
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.
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]
8 .TH UTMPD 8 "April 9, 2016"
10 utmpd \- utmpx monitoring daemon
14 \fButmpd\fR [\fB-debug\fR]
19 The \fButmpd\fR daemon monitors the \fB/var/log/utmpx\fR file. See
20 \fButmpx\fR(4) (and \fButmp\fR(4) for historical information).
23 \fButmpd\fR receives requests from \fBpututxline\fR(3C) by way of a named pipe.
24 It maintains a table of processes and uses \fBpoll\fR(2) on \fB/proc\fR files
25 to detect process termination. When \fButmpd\fR detects that a process has
26 terminated, it checks that the process has removed its \fButmpx\fR entry from
27 \fB/var/log/utmpx\fR. If the process' \fButmpx\fR entry has not been removed,
28 \fButmpd\fR removes the entry. By periodically scanning the
29 \fB/var/log/utmpx\fR file, \fButmpd\fR also monitors processes that are not in
38 Run in debug mode, leaving the process connected to the controlling terminal.
39 Write debugging information to standard output.
44 The following exit values are returned:
52 Successful completion.
68 \fB\fB/etc/default/utmpd\fR\fR
72 You can set default values for the flags listed below. For example:
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.
81 \fB\fBSCAN_PERIOD\fR\fR
85 The number of seconds that \fButmpd\fR sleeps between checks of \fB/proc\fR to
86 see if monitored processes are still alive. The default is 300.
96 The maximum number of processes that \fButmpd\fR attempts to monitor. The
97 default value is 4096.
103 \fB\fBWTMPX_UPDATE_FREQ\fR\fR
107 The number of seconds that \fButmpd\fR sleeps between read accesses of the
108 \fBwtmpx\fR file. The \fBwtmpx\fR file's last access time is used by
109 \fBinit\fR(8) on reboot to determine when the operating system became
110 unavailable. The default is 60.
118 \fB\fB/var/log/utmpx\fR\fR
122 File containing user and accounting information for commands such as
123 \fBwho\fR(1), \fBwrite\fR(1), and \fBlogin\fR(1).
133 Directory containing files for processes whose \fButmpx\fR entries are being
139 \fBsvcs\fR(1), \fBinit\fR(8), \fBsvcadm\fR(8), \fBpoll\fR(2),
140 \fBpututxline\fR(3C), \fBproc\fR(4), \fButmp\fR(4), \fButmpx\fR(4),
141 \fBattributes\fR(5), \fBsmf\fR(5)
144 If the filesystem holding \fB/var/log/wtmpx\fR is mounted with options which
145 inhibit or defer access time updates, an unknown amount of error will be
146 introduced into the \fButmp\fR \fBDOWN_TIME\fR record's timestamp in the event
147 of an uncontrolled shutdown (for example, a crash or loss of power ).
148 Controlled shutdowns will update the modify time of \fB/var/log/wtmpx\fR, which
149 will be used on the next boot to determine when the previous shutdown occurred,
150 regardless of access time deferral or inhibition.
153 The \fButmpd\fR service is managed by the service management facility,
154 \fBsmf\fR(5), under the service identifier:
158 svc:/system/utmp:default
165 Administrative actions on this service, such as enabling, disabling, or
166 requesting restart, can be performed using \fBsvcadm\fR(8). The service's
167 status can be queried using the \fBsvcs\fR(1) command.