From ec1c7338c5de5f0c42f05ab99f8c9b64c11efcab Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Thu, 22 Feb 2007 04:06:19 +0000 Subject: document the new options to manipulate carp demotion counters. --- usr.sbin/hoststated/hoststated.conf.5 | 24 +++++++++++++++++++++++- usr.sbin/relayd/relayd.conf.5 | 24 +++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/usr.sbin/hoststated/hoststated.conf.5 b/usr.sbin/hoststated/hoststated.conf.5 index f919e4821af..9b5afe6b717 100644 --- a/usr.sbin/hoststated/hoststated.conf.5 +++ b/usr.sbin/hoststated/hoststated.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: hoststated.conf.5,v 1.18 2007/02/22 03:32:39 reyk Exp $ +.\" $OpenBSD: hoststated.conf.5,v 1.19 2007/02/22 04:06:18 reyk Exp $ .\" .\" Copyright (c) 2006 Pierre-Yves Ritschard .\" @@ -89,6 +89,18 @@ table webhosts { Here are the settings that can be set globally: .Pp .Bl -tag -width Ds -compact +.It Ic demote Ar group +Enable the global +.Xr carp 4 +demotion option, this will reset the carp demotion counter for the +specified interface group to zero on startup and to 128 on shutdown of +the daemon. +For more information on interface groups, +see the +.Ic group +keyword in +.Xr ifconfig 8 . +.Pp .It Xo .Ic interval Ar number .Xc @@ -201,6 +213,16 @@ is specified, a complete SSL handshake will also be performed. .It Ic check ssl This has the same effect as above but also implies .Ic use ssl . +.It Ic demote Ar group +Enable the per-table +.Xr carp 4 +demotion option, this will increment the carp demotion counter for the +specified interface group if all hosts in the table are down. +For more information on interface groups, +see the +.Ic group +keyword in +.Xr ifconfig 8 . .It Ic disable Start the table disabled \(en no hosts will be checked in this table. The table can be later enabled through diff --git a/usr.sbin/relayd/relayd.conf.5 b/usr.sbin/relayd/relayd.conf.5 index 3dbfdfc8a9c..0b6800ce3a7 100644 --- a/usr.sbin/relayd/relayd.conf.5 +++ b/usr.sbin/relayd/relayd.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: relayd.conf.5,v 1.18 2007/02/22 03:32:39 reyk Exp $ +.\" $OpenBSD: relayd.conf.5,v 1.19 2007/02/22 04:06:18 reyk Exp $ .\" .\" Copyright (c) 2006 Pierre-Yves Ritschard .\" @@ -89,6 +89,18 @@ table webhosts { Here are the settings that can be set globally: .Pp .Bl -tag -width Ds -compact +.It Ic demote Ar group +Enable the global +.Xr carp 4 +demotion option, this will reset the carp demotion counter for the +specified interface group to zero on startup and to 128 on shutdown of +the daemon. +For more information on interface groups, +see the +.Ic group +keyword in +.Xr ifconfig 8 . +.Pp .It Xo .Ic interval Ar number .Xc @@ -201,6 +213,16 @@ is specified, a complete SSL handshake will also be performed. .It Ic check ssl This has the same effect as above but also implies .Ic use ssl . +.It Ic demote Ar group +Enable the per-table +.Xr carp 4 +demotion option, this will increment the carp demotion counter for the +specified interface group if all hosts in the table are down. +For more information on interface groups, +see the +.Ic group +keyword in +.Xr ifconfig 8 . .It Ic disable Start the table disabled \(en no hosts will be checked in this table. The table can be later enabled through -- cgit v1.2.3