Bug 58832

Summary: /etc/rc.d/ipsec starts not in time
Product: Base System Reporter: Kostyuk Oleg <cub>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: current
Priority: Normal    
Version: 5.1-CURRENT   
Hardware: Any   
OS: Any   

Description Kostyuk Oleg 2003-11-02 14:00:34 UTC
	I use ipsec between my desktop and nfs/ntp server.
	On boot my mashine stops on "Mounting NFS file systems".

	If I press Ctrl+C, booting continue ok, but nfs mounts
	left unmounted and time not in sync.

	I try to use -b flag to mount_nfs in fstab, but this
	not help me.

	Problem is in order of starting /etc/rc.d/ipsec.
	It must start BEFORE any network interaction,
	may be even before configuring interfaces.
	But I not sure in case with diskless mashines.

Fix: 

(~)% grep -h '\$FreeBSD' /usr/src/etc/rc.d/ipsec /etc/rc.d/ipsec
	# $FreeBSD: src/etc/rc.d/ipsec,v 1.6 2003/07/30 18:53:59 mtm Exp $
	# $FreeBSD: src/etc/rc.d/ipsec,v 1.6 2003/07/30 18:53:59 mtm Exp $


	(~)% diff -u /usr/src/etc/rc.d/ipsec /etc/rc.d/ipsec
	--- /usr/src/etc/rc.d/ipsec     Wed Jul 30 21:53:59 2003
	+++ /etc/rc.d/ipsec     Sun Nov  2 14:43:59 2003
	@@ -5,8 +5,8 @@
	 #

	 # PROVIDE: ipsec
	 # REQUIRE: root beforenetlkm mountcritlocal
	-# BEFORE:  DAEMON
	+# BEFORE:  NETWORK
	 # KEYWORD: FreeBSD NetBSD

	 #      it does not really require beforenetlkm.
How-To-Repeat: 	Create entry in /etc/fstab for nfs mount,
	create /etc/ipsec.conf to establish secure connection
	to same server (on both sides, of course :), and reboot.
Comment 1 Jean-Yves Lefort 2004-09-28 18:11:34 UTC
This is a duplicate of 72135.

The patch I've provided there might be more appropriate.

-- 
Jean-Yves Lefort

jylefort@brutele.be
http://lefort.be.eu.org/
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2005-11-13 08:08:57 UTC
State Changed
From-To: open->closed

See patch in conf/72135.