1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
'\" te
.\" Copyright 2015 Shruti V Sampat <shrutisampat@gmail.com>
.\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
.\" Copyright 1989 AT&T
.\" 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.
.\" 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.
.\" 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]
.TH UTMPD 8 "April 9, 2016"
.SH NAME
utmpd \- utmpx monitoring daemon
.SH SYNOPSIS
.LP
.nf
\fButmpd\fR [\fB-debug\fR]
.fi
.SH DESCRIPTION
.LP
The \fButmpd\fR daemon monitors the \fB/var/adm/utmpx\fR file. See
\fButmpx\fR(5) (and \fButmp\fR(5) for historical information).
.sp
.LP
\fButmpd\fR receives requests from \fBpututxline\fR(3C) by way of a named pipe.
It maintains a table of processes and uses \fBpoll\fR(2) on \fB/proc\fR files
to detect process termination. When \fButmpd\fR detects that a process has
terminated, it checks that the process has removed its \fButmpx\fR entry from
\fB/var/adm/utmpx\fR. If the process' \fButmpx\fR entry has not been removed,
\fButmpd\fR removes the entry. By periodically scanning the
\fB/var/adm/utmpx\fR file, \fButmpd\fR also monitors processes that are not in
its table.
.SH OPTIONS
.ne 2
.na
\fB\fB-debug\fR\fR
.ad
.sp .6
.RS 4n
Run in debug mode, leaving the process connected to the controlling terminal.
Write debugging information to standard output.
.RE
.SH EXIT STATUS
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.sp .6
.RS 4n
Successful completion.
.RE
.sp
.ne 2
.na
\fB\fB>0\fR\fR
.ad
.sp .6
.RS 4n
An error occurred.
.RE
.SH FILES
.ne 2
.na
\fB\fB/etc/default/utmpd\fR\fR
.ad
.sp .6
.RS 4n
You can set default values for the flags listed below. For example:
\fBSCAN_PERIOD=600\fR
.sp
The values for these flags should be greater than 0. If values read
from the file are found to be less than or equal to 0, or containing
invalid characters, the default values mentioned below are retained.
.sp
.ne 2
.na
\fB\fBSCAN_PERIOD\fR\fR
.ad
.sp .6
.RS 4n
The number of seconds that \fButmpd\fR sleeps between checks of \fB/proc\fR to
see if monitored processes are still alive. The default is 300.
.RE
.sp
.ne 2
.na
\fB\fBMAX_FDS\fR\fR
.ad
.sp .6
.RS 4n
The maximum number of processes that \fButmpd\fR attempts to monitor. The
default value is 4096.
.RE
.sp
.ne 2
.na
\fB\fBWTMPX_UPDATE_FREQ\fR\fR
.ad
.sp .6
.RS 4n
The number of seconds that \fButmpd\fR sleeps between read accesses of the
\fBwtmpx\fR file. The \fBwtmpx\fR file's last access time is used by
\fBinit\fR(8) on reboot to determine when the operating system became
unavailable. The default is 60.
.RE
.RE
.sp
.ne 2
.na
\fB\fB/var/adm/utmpx\fR\fR
.ad
.sp .6
.RS 4n
File containing user and accounting information for commands such as
\fBwho\fR(1), \fBwrite\fR(1), and \fBlogin\fR(1).
.RE
.sp
.ne 2
.na
\fB\fB/proc\fR\fR
.ad
.sp .6
.RS 4n
Directory containing files for processes whose \fButmpx\fR entries are being
monitored.
.RE
.SH SEE ALSO
.LP
.BR svcs (1),
.BR poll (2),
.BR pututxline (3C),
.BR proc (5),
.BR utmp (5),
.BR utmpx (5),
.BR attributes (7),
.BR smf (7),
.BR init (8),
.BR svcadm (8)
.SH NOTES
.LP
If the filesystem holding \fB/var/adm/wtmpx\fR is mounted with options which
inhibit or defer access time updates, an unknown amount of error will be
introduced into the \fButmp\fR \fBDOWN_TIME\fR record's timestamp in the event
of an uncontrolled shutdown (for example, a crash or loss of power ).
Controlled shutdowns will update the modify time of \fB/var/adm/wtmpx\fR, which
will be used on the next boot to determine when the previous shutdown occurred,
regardless of access time deferral or inhibition.
.sp
.LP
The \fButmpd\fR service is managed by the service management facility,
\fBsmf\fR(7), under the service identifier:
.sp
.in +2
.nf
svc:/system/utmp:default
.fi
.in -2
.sp
.sp
.LP
Administrative actions on this service, such as enabling, disabling, or
requesting restart, can be performed using \fBsvcadm\fR(8). The service's
status can be queried using the \fBsvcs\fR(1) command.
|