From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 2 06:00:36 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F24E16A4CE for ; Sun, 2 Nov 2003 06:00:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 240B143FAF for ; Sun, 2 Nov 2003 06:00:35 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id hA2E0YFY087603 for ; Sun, 2 Nov 2003 06:00:34 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id hA2E0YDG087602; Sun, 2 Nov 2003 06:00:34 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 2 Nov 2003 06:00:34 -0800 (PST) Resent-Message-Id: <200311021400.hA2E0YDG087602@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kostyuk Oleg Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE06716A4CE; Sun, 2 Nov 2003 05:49:48 -0800 (PST) Received: from shop.digma.com.ua (shop.digma.com.ua [217.12.194.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6721C43FDD; Sun, 2 Nov 2003 05:49:44 -0800 (PST) (envelope-from cub@cub.org.ua) Received: from cub.org.ua (demani.digma [172.22.5.7]) by shop.digma.com.ua (8.12.6p2/8.12.6) with ESMTP id hA2Dneba056188; Sun, 2 Nov 2003 15:49:40 +0200 (EET) (envelope-from cub@cub.org.ua) Received: from cub by cub.org.ua with local (Exim 4.22) id 1AGIbn-0001Ux-7o; Sun, 02 Nov 2003 15:49:35 +0200 Message-Id: Date: Sun, 02 Nov 2003 15:49:35 +0200 From: Kostyuk Oleg Sender: Kostyuk Oleg To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: freebsd-current@FreeBSD.org Subject: conf/58832: /etc/rc.d/ipsec starts not in time X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kostyuk Oleg List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2003 14:00:36 -0000 >Number: 58832 >Category: conf >Synopsis: /etc/rc.d/ipsec starts not in time >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 02 06:00:34 PST 2003 >Closed-Date: >Last-Modified: >Originator: Kostyuk Oleg >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: FreeBSD demani.digma 5.1-CURRENT FreeBSD 5.1-CURRENT #4: Sun Nov 2 13:45:34 EET 2003 root@demani.digma:/var/.0/usr/obj/usr/src/sys/CUB i386 >Description: 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. >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. >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. >Release-Note: >Audit-Trail: >Unformatted: