New sentence, new line.

Add -u to SYNOPSIS. Fix some typos.
Use more markup. Bump date for -u.
This commit is contained in:
wiz 2005-09-12 18:33:56 +00:00
parent b9c29c4def
commit 4b44cc9527

View File

@ -26,9 +26,9 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" from: @(#)rwhod.8 8.2 (Berkeley) 12/11/93 .\" from: @(#)rwhod.8 8.2 (Berkeley) 12/11/93
.\" $NetBSD: rwhod.8,v 1.19 2005/09/12 16:13:13 tsarna Exp $ .\" $NetBSD: rwhod.8,v 1.20 2005/09/12 18:33:56 wiz Exp $
.\" .\"
.Dd August 9, 2005 .Dd September 12, 2005
.Dt RWHOD 8 .Dt RWHOD 8
.Os .Os
.Sh NAME .Sh NAME
@ -37,13 +37,15 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl i Ar interval .Op Fl i Ar interval
.Op Fl u Ar user
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm .Nm
is the server which maintains the database used by the is the server which maintains the database used by the
.Xr rwho 1 .Xr rwho 1
and and
.Xr ruptime 1 .Xr ruptime 1
programs. Its operation is predicated on the ability to programs.
Its operation is predicated on the ability to
.Em broadcast .Em broadcast
messages on a network. messages on a network.
.Pp .Pp
@ -62,7 +64,8 @@ because higher values will cause
.Xr ruptime 1 .Xr ruptime 1
to mark the host as being down. to mark the host as being down.
.It Fl u Ar user .It Fl u Ar user
drop privledges and become the named user. Drop privileges and become the user
.Ar user .
.El .El
.Pp .Pp
.Nm .Nm
@ -77,7 +80,9 @@ them in a collection of files located in the directory
.Pa /var/rwho . .Pa /var/rwho .
.Pp .Pp
The server transmits and receives messages at the port indicated The server transmits and receives messages at the port indicated
in the ``who'' service specification; see in the
.Dq who
service specification; see
.Xr services 5 . .Xr services 5 .
The messages sent and received, are of the form: The messages sent and received, are of the form:
.Bd -literal -offset indent .Bd -literal -offset indent
@ -104,17 +109,18 @@ struct whod {
.Ed .Ed
.Pp .Pp
All fields are converted to network byte order prior to All fields are converted to network byte order prior to
transmission. The load averages are as calculated by the transmission.
The load averages are as calculated by the
.Xr w 1 .Xr w 1
program, and represent load averages over the 5, 10, and 15 minute program, and represent load averages over the 5, 10, and 15 minute
intervals prior to a server's transmission; they are multiplied by 100 intervals prior to a server's transmission; they are multiplied by 100
for representation in an integer. The host name for representation in an integer.
included is that returned by the The host name included is that returned by the
.Xr gethostname 3 .Xr gethostname 3
function call, with any trailing domain name omitted. function call, with any trailing domain name omitted.
The array at the end of the message contains information about The array at the end of the message contains information about
the users logged in to the sending machine. This information the users logged in to the sending machine.
includes the contents of the This information includes the contents of the
.Xr utmp 5 .Xr utmp 5
entry for each non-idle terminal line and a value indicating the entry for each non-idle terminal line and a value indicating the
time in seconds since a character was last received on the terminal line. time in seconds since a character was last received on the terminal line.
@ -122,12 +128,13 @@ time in seconds since a character was last received on the terminal line.
Messages received by the Messages received by the
.Xr rwho 1 .Xr rwho 1
server are discarded unless they originated at an server are discarded unless they originated at an
rwho .Xr rwho 1
server's port. In addition, if the host's name, as specified server's port.
In addition, if the host's name, as specified
in the message, contains any unprintable in the message, contains any unprintable
.Tn ASCII .Tn ASCII
characters, the characters, the message is discarded.
message is discarded. Valid messages received by Valid messages received by
.Nm .Nm
are placed in files named are placed in files named
.Pa whod.hostname .Pa whod.hostname
@ -149,6 +156,5 @@ command appeared in
.Sh BUGS .Sh BUGS
There should be a way to relay status information between networks. There should be a way to relay status information between networks.
Status information should be sent only upon request rather than continuously. Status information should be sent only upon request rather than continuously.
People often interpret the server dying People often interpret the server dying or network communication
or network communication failures failures as a machine going down.
as a machine going down.