Browse Source

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
OPENBSD_4_0
henning 18 years ago
parent
commit
6165008dec
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/rc

+ 3
- 3
src/etc/rc View File

@ -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 '.'


Loading…
Cancel
Save