From a544b76a69516341f1134f2dd04d8dcde1ff0868 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 26 Aug 2013 12:20:53 +0000 Subject: [PATCH] Add the persistent option to the default dhcpcd.conf Document how this can affect connected clients at shutdown, such as SSH --- dhcpcd.8.in | 5 +++-- dhcpcd.conf | 3 +++ dhcpcd.conf.5.in | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dhcpcd.8.in b/dhcpcd.8.in index 303e791b..ff2f704a 100644 --- a/dhcpcd.8.in +++ b/dhcpcd.8.in @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 19, 2013 +.Dd August 26, 2013 .Dt DHCPCD 8 .Os .Sh NAME @@ -351,7 +351,8 @@ normally de-configures the .Ar interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over -NFS. +NFS or SSH clients connect to this host and they need to be notified of +the host shutting down. You can use this option to stop this from happening. .It Fl r , Fl Fl request Op Ar address Request the diff --git a/dhcpcd.conf b/dhcpcd.conf index 349c6f22..96eaf523 100644 --- a/dhcpcd.conf +++ b/dhcpcd.conf @@ -10,6 +10,9 @@ hostname # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361. duid +# Persist interface configuration when dhcpcd exits. +persistent + # Rapid commit support. # Safe to enable by default because it requires the equivalent option set # on the server to actually work. diff --git a/dhcpcd.conf.5.in b/dhcpcd.conf.5.in index bdbd65bf..a24d1af3 100644 --- a/dhcpcd.conf.5.in +++ b/dhcpcd.conf.5.in @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 25, 2013 +.Dd August 26, 2013 .Dt DHCPCD.CONF 5 SMM .Os .Sh NAME @@ -138,7 +138,8 @@ and should not be copied to other hosts. .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over -NFS. +NFS or SSH clients connect to this host and they need to be notified of +the host shutting down. You can use this option to stop this from happening. .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. -- 2.47.3