1996-02-17 15:14:59 +00:00
|
|
|
.\" -*- nroff -*-
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1995 A.R.Gordon, andrew.gordon@net-tel.co.uk
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2014-03-14 03:07:51 +00:00
|
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
1996-02-17 15:14:59 +00:00
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1996-02-17 15:14:59 +00:00
|
|
|
.\"
|
2019-11-22 16:53:30 +00:00
|
|
|
.Dd November 21, 2019
|
1996-02-17 15:14:59 +00:00
|
|
|
.Dt RPC.STATD 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
2001-07-15 08:06:20 +00:00
|
|
|
.Nm rpc.statd
|
1996-02-17 15:14:59 +00:00
|
|
|
.Nd host status monitoring daemon
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1996-02-17 15:14:59 +00:00
|
|
|
.Op Fl d
|
2019-11-22 16:53:30 +00:00
|
|
|
.Op Fl F
|
2007-11-01 20:13:33 +00:00
|
|
|
.Op Fl h Ar bindip
|
2007-04-03 21:15:00 +00:00
|
|
|
.Op Fl p Ar port
|
1996-02-17 15:14:59 +00:00
|
|
|
.Sh DESCRIPTION
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility
|
|
|
|
is a daemon which co-operates with
|
|
|
|
.Nm
|
|
|
|
daemons on other hosts to provide
|
2004-07-02 23:13:00 +00:00
|
|
|
a status monitoring service.
|
|
|
|
The daemon accepts requests from
|
1996-02-17 15:14:59 +00:00
|
|
|
programs running on the local host (typically,
|
|
|
|
.Xr rpc.lockd 8 ,
|
|
|
|
the NFS file locking daemon) to monitor the status of specified
|
2004-07-02 23:13:00 +00:00
|
|
|
hosts.
|
|
|
|
If a monitored host crashes and restarts, the remote daemon will
|
1996-02-17 15:14:59 +00:00
|
|
|
notify the local daemon, which in turn will notify the local program(s)
|
2004-07-02 23:13:00 +00:00
|
|
|
which requested the monitoring service.
|
|
|
|
Conversely, if this host crashes
|
1996-02-17 15:14:59 +00:00
|
|
|
and re-starts, when the
|
1997-10-13 11:13:33 +00:00
|
|
|
.Nm
|
1996-02-17 15:14:59 +00:00
|
|
|
re-starts, it will notify all of the hosts which were being monitored
|
|
|
|
at the time of the crash.
|
|
|
|
.Pp
|
1997-10-13 11:13:33 +00:00
|
|
|
The following option is available:
|
|
|
|
.Bl -tag -width indent
|
1996-02-17 15:14:59 +00:00
|
|
|
.It Fl d
|
1997-10-13 11:13:33 +00:00
|
|
|
Cause debugging information to be written to syslog, recording
|
2004-07-02 23:13:00 +00:00
|
|
|
all RPC transactions to the daemon.
|
|
|
|
These messages are logged with level
|
|
|
|
LOG_DEBUG and facility LOG_DAEMON.
|
|
|
|
Error conditions are logged irrespective
|
1996-02-17 15:14:59 +00:00
|
|
|
of this option, using level LOG_ERR.
|
2019-11-22 16:53:30 +00:00
|
|
|
.It Fl F
|
|
|
|
Run
|
|
|
|
.Nm
|
|
|
|
in the foreground, rather than going into daemon mode.
|
|
|
|
This is useful if some other process uses
|
|
|
|
.Xr fork 2
|
|
|
|
and
|
|
|
|
.Xr exec 3
|
|
|
|
to run
|
|
|
|
.Nm ,
|
|
|
|
and wants to monitor when and how it exits.
|
2007-11-01 20:13:33 +00:00
|
|
|
.It Fl h Ar bindip
|
|
|
|
Specify specific IP addresses to bind to.
|
|
|
|
This option may be specified multiple times.
|
|
|
|
If no
|
|
|
|
.Fl h
|
|
|
|
option is specified,
|
|
|
|
.Nm
|
|
|
|
will bind to
|
|
|
|
.Dv INADDR_ANY .
|
|
|
|
Note that when specifying IP addresses with
|
|
|
|
.Fl h ,
|
|
|
|
.Nm
|
|
|
|
will automatically add
|
|
|
|
.Li 127.0.0.1
|
|
|
|
and if IPv6 is enabled,
|
|
|
|
.Li ::1
|
|
|
|
to the list.
|
2007-04-03 21:15:00 +00:00
|
|
|
.It Fl p
|
|
|
|
The
|
|
|
|
.Fl p
|
|
|
|
option allow to force the daemon to bind to the specified
|
|
|
|
.Ar port ,
|
|
|
|
for both AF_INET and AF_INET6 address families.
|
1996-02-17 15:14:59 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
1997-10-13 11:13:33 +00:00
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility must NOT be invoked by
|
1996-02-17 15:14:59 +00:00
|
|
|
.Xr inetd 8
|
|
|
|
because the protocol assumes that the daemon will run from system start time.
|
|
|
|
Instead, it should be run from
|
|
|
|
.Xr rc 8
|
|
|
|
after the network has been started.
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /usr/include/rpcsvc/sm_inter.x -compact
|
|
|
|
.It Pa /var/db/statd.status
|
|
|
|
non-volatile record of currently monitored hosts.
|
|
|
|
.It Pa /usr/include/rpcsvc/sm_inter.x
|
|
|
|
RPC protocol specification used by local applications to register monitoring requests.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
1997-01-20 00:03:00 +00:00
|
|
|
.Xr syslog 3 ,
|
1996-02-17 15:14:59 +00:00
|
|
|
.Xr rc 8 ,
|
1997-01-20 00:03:00 +00:00
|
|
|
.Xr rpc.lockd 8
|
2005-01-18 20:02:45 +00:00
|
|
|
.Sh STANDARDS
|
|
|
|
The implementation is based on the specification in X/Open CAE Specification
|
|
|
|
C218, "Protocols for X/Open PC Interworking: XNFS, Issue 4", ISBN 1 872630 66 9
|
1996-02-17 15:14:59 +00:00
|
|
|
.Sh BUGS
|
|
|
|
There is no means for the daemon to tell when a monitored host has
|
2004-07-02 23:13:00 +00:00
|
|
|
disappeared permanently (e.g.\& catastrophic hardware failure), as opposed
|
|
|
|
to transient failure of the host or an intermediate router.
|
|
|
|
At present,
|
1996-02-17 15:14:59 +00:00
|
|
|
it will re-try notification attempts at frequent intervals for 10 minutes,
|
|
|
|
then hourly, and finally gives up after 24 hours.
|
2000-12-27 15:30:30 +00:00
|
|
|
.Pp
|
1996-02-17 15:14:59 +00:00
|
|
|
The protocol requires that symmetric monitor requests are made to both
|
|
|
|
the local and remote daemon in order to establish a monitored relationship.
|
|
|
|
This is convenient for the NFS locking protocol, but probably reduces the
|
|
|
|
usefulness of the monitoring system for other applications.
|
2000-12-27 15:30:30 +00:00
|
|
|
.Pp
|
1996-02-17 15:14:59 +00:00
|
|
|
The current implementation uses more than 1Kbyte per monitored host in
|
2004-07-02 23:13:00 +00:00
|
|
|
the status file (and also in VM).
|
|
|
|
This may be inefficient for NFS servers
|
1996-02-17 15:14:59 +00:00
|
|
|
with large numbers of clients.
|