Sort options, fix a typo, and some minor clean-up.

This commit is contained in:
wiz 2001-12-10 15:04:51 +00:00
parent 136813d385
commit 61cbc31fe7
1 changed files with 19 additions and 19 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ifwatchd.8,v 1.3 2001/12/10 14:54:09 martin Exp $
.\" $NetBSD: ifwatchd.8,v 1.4 2001/12/10 15:04:51 wiz Exp $
.\"
.\" Copyright (C) 2001 by Martin Husemann
.\" All rights reserved.
@ -29,17 +29,17 @@
.Dt IFWATCHD 8
.Sh NAME
.Nm ifwatchd
.Nd watch for addresses added to or deleted from interfaces and call up/down scripts for them
.Nd "watch for addresses added to or deleted from interfaces and call up/down-scripts for them"
.Sh SYNOPSIS
.Nm
.Op Fl h
.Op Fl v
.Op Fl i
.Op Fl d Ar down-script
.Op Fl h
.Op Fl i
.Op Fl u Ar up-script
.Op Fl v
.Ar ifname(s)
.Sh DESCRIPTION
.Nm Ifwatchd
.Nm
is used to monitor dynamic interfaces (for example PPP interfaces) for address
changes. Sometimes these interfaces are accompanied by a daemon program, which
can take care of running any necessary scripts (like
@ -49,7 +49,7 @@ or
but sometimes the interfaces run completely autonomously (like
.Xr pppoe 8 ) .
.Pp
.Nm Ifwatchd
.Nm
provides a generic way to watch this type of changes. It works by monitoring
the routing socket and interpreting
.Ql RTM_NEWADDR
@ -70,6 +70,18 @@ Specify the command to invoke on
events (or: deletion of an address from an interface).
.It Fl h
Show the synopsis.
.It Fl i
Inhibit a call to the up-script on startup for all watched interfaces
already marked up. If this option is not given,
.Nm
will check all watched interfaces on startup whether they are already marked
up and, if they are, call the up-script with appropriate parameters.
.Pp
Since ifwatchd typically is started late in the system boot sequence, some
of the monitored interfaces may already have come up when it finally starts,
but their up-scripts have not been called. By default
.Nm
calls them on startup to account for this (and make the scripts easier.)
.It Fl u Ar up-script
Specify the command to invoke on
.Dq interface up
@ -80,18 +92,6 @@ operation.
.It Ar ifname(s)
The name of the interface to watch. Multiple interfaces may be specified.
Events for other interfaces are ignored.
.It Fl i
Inhibit a call to the up-script on startup for all watched interfaces
already marked up. If this option is not given,
.Nm
will check all watched interfaces on startup whether they are already marked
up and, if they are, call the up script with appropriate parameters.
.Pp
Since ifwatchd typically is started late in the system boot sequence, some
of the monitored interfaces may already have come up when it finaly starts,
but their up scripts have not been called. By default
.Nm
calls them on startup to account for this (and make the scripts easier.)
.El
.Sh EXAMPLES
.Bd -literal -offset indent