Browse Source

Carp demotion interlock. Prevents carp from preempting until the system is

booted, allowing for daemons to sync with peers before we take over.
ok deraadt@ mpf@ moritz@
OPENBSD_4_0
mcbride 18 years ago
parent
commit
39ccdf1ead
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/etc/rc

+ 6
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.285 2006/06/01 21:37:43 norby Exp $
# $OpenBSD: rc,v 1.286 2006/06/02 19:59:35 mcbride Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -244,6 +244,7 @@ sysctl_conf
# set hostname, turn on network # set hostname, turn on network
echo 'starting network' echo 'starting network'
ifconfig -g carp carpdemote
if [ -f /etc/resolv.conf.save ]; then if [ -f /etc/resolv.conf.save ]; then
mv /etc/resolv.conf.save /etc/resolv.conf mv /etc/resolv.conf.save /etc/resolv.conf
touch /etc/resolv.conf touch /etc/resolv.conf
@ -759,6 +760,9 @@ fi
echo -n ' cron'; cron echo -n ' cron'; cron
# disable carp interlock
ifconfig -g carp -carpdemote
echo '.' echo '.'
date date
@ -772,5 +776,6 @@ if [ X"${xdm_flags}" != X"NO" ]; then
echo 'starting xdm...'; /usr/X11R6/bin/xdm ${xdm_flags} echo 'starting xdm...'; /usr/X11R6/bin/xdm ${xdm_flags}
fi fi
exit 0 exit 0

Loading…
Cancel
Save