Browse Source

Switch boot order: isakmpd starts before sasyncd.

If a user is running sasyncd, start isakmpd with -S.
In this mode isakmpd starts off passsive and doesn't
delete SA's on shutdown.
OK ho@, hshoexer@, deraadt@
OPENBSD_4_0
mpf 18 years ago
parent
commit
341b7459bc
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      src/etc/rc

+ 8
- 5
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.289 2006/08/29 17:26:55 henning Exp $
# $OpenBSD: rc,v 1.290 2006/09/01 01:18:02 mpf 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.
@ -321,14 +321,17 @@ if [ X"${named_flags}" != X"NO" ]; then
echo 'starting named'; named $named_flags echo 'starting named'; named $named_flags
fi fi
if [ X"${sasyncd_flags}" != X"NO" ]; then
echo 'starting sasyncd'; sasyncd ${sasyncd_flags}
fi
if [ X"${isakmpd_flags}" != X"NO" ]; then if [ X"${isakmpd_flags}" != X"NO" ]; then
if [ X"${sasyncd_flags}" != X"NO" ]; then
isakmpd_flags="-S ${isakmpd_flags}"
fi
echo 'starting isakmpd'; isakmpd ${isakmpd_flags} echo 'starting isakmpd'; isakmpd ${isakmpd_flags}
fi fi
if [ X"${sasyncd_flags}" != X"NO" ]; then
echo 'starting sasyncd'; sasyncd ${sasyncd_flags}
fi
if [ X"${ipsec}" != X"NO" ]; then if [ X"${ipsec}" != X"NO" ]; then
if [ -f ${ipsec_rules} ]; then if [ -f ${ipsec_rules} ]; then
ipsecctl -f ${ipsec_rules} ipsecctl -f ${ipsec_rules}


Loading…
Cancel
Save