summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-02-22 22:28:16 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-02-22 22:28:16 +0000
commit914b5cba929670d6ddf29e8147c0e211ac623f56 (patch)
treee87e7c99c4d02cec4685d13cdc87af551601e8e7
parente9d7d3827ccf1499d6d06dc2d20797011d159e8c (diff)
Attempt a short explanation of what happens on start up and when
external configuration occurs on a interface with an associated dhclient. Also add INT to SIGNALS section and alphabetize the list of signals. Tweaks from & ok jmc@.
-rw-r--r--sbin/dhclient/dhclient.842
1 files changed, 31 insertions, 11 deletions
diff --git a/sbin/dhclient/dhclient.8 b/sbin/dhclient/dhclient.8
index 2dd45b39e61..c5ebeb268b6 100644
--- a/sbin/dhclient/dhclient.8
+++ b/sbin/dhclient/dhclient.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dhclient.8,v 1.17 2013/02/22 14:14:45 krw Exp $
+.\" $OpenBSD: dhclient.8,v 1.18 2013/02/22 22:28:15 krw Exp $
.\"
.\" Copyright (c) 1997 The Internet Software Consortium.
.\" All rights reserved.
@@ -143,6 +143,20 @@ group
.Nm
will exit with an error.
.Pp
+When configuring the interface,
+.Nm
+attempts to remove any existing addresses, gateway routes that use
+the interface and non-permanent
+.Xr arp 8
+entries.
+Conversely, if the interface is later manipulated to add or delete
+addresses then
+.Nm
+will automatically exit.
+It thus automatically exits whenever a new
+.Nm
+is run on the same interface.
+.Pp
In order to keep track of leases across system reboots and server
restarts,
.Nm
@@ -204,26 +218,32 @@ On receiving
will restart itself, reading
.Xr dhclient.conf 5
and obtaining a new lease.
-.It Dv USR[12]
-On receiving either
-.Dv USR1
-or
-.Dv USR2 ,
+.It Dv INT
+On receiving
+.Dv INT
.Nm
will exit after attempting to remove any routes, interface addresses
or temporary files it created.
+.It Dv QUIT
+On receiving
+.Dv QUIT
+.Nm
+will dump core and exit without attempting to remove any routes, interface
+addresses or temporary files it created.
.It Dv TERM
On receiving
.Dv TERM
.Nm
will exit without attempting to remove any routes, interface addresses
or temporary files it created.
-.It Dv QUIT
-On receiving
-.Dv QUIT
+.It Dv USR[12]
+On receiving either
+.Dv USR1
+or
+.Dv USR2 ,
.Nm
-will dump core and exit without attempting to remove any routes, interface
-addresses or temporary files it created.
+will exit after attempting to remove any routes, interface addresses
+or temporary files it created.
.El
.Sh FILES
.Bl -tag -width "/var/db/dhclient.leases.<IFNAME>XXX" -compact