From 6165008dec1394c632cfc5ef9045107187adfbb3 Mon Sep 17 00:00:00 2001 From: henning <> Date: Tue, 29 Aug 2006 17:26:55 +0000 Subject: [PATCH] increase the carp demotion counter by 128 instead of 1 while rc runs. you do not want a machine that is in the middle of rc and does not have all network daemons (that possibly increase the carp demotion counter further) to become master just because the other one lost 2 bgp sessions or similar for other daemons (esp sasyncd) and as such has a demotion count of >1. ok mcbride mpf deraadt --- src/etc/rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 81863943..f8017048 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.288 2006/08/04 11:43:43 markus Exp $ +# $OpenBSD: rc,v 1.289 2006/08/29 17:26:55 henning Exp $ # System startup script run by init on autoboot # or after single-user. @@ -244,7 +244,7 @@ sysctl_conf # set hostname, turn on network echo 'starting network' -ifconfig -g carp carpdemote +ifconfig -g carp carpdemote 128 if [ -f /etc/resolv.conf.save ]; then mv /etc/resolv.conf.save /etc/resolv.conf touch /etc/resolv.conf @@ -722,7 +722,7 @@ fi echo -n ' cron'; cron # disable carp interlock -ifconfig -g carp -carpdemote +ifconfig -g carp -carpdemote 128 echo '.'