From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 12 00:00:11 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7386316A469 for ; Fri, 12 Oct 2007 00:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 359E413C44B for ; Fri, 12 Oct 2007 00:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9C00Apt058684 for ; Fri, 12 Oct 2007 00:00:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9C00A6j058682; Fri, 12 Oct 2007 00:00:10 GMT (envelope-from gnats) Resent-Date: Fri, 12 Oct 2007 00:00:10 GMT Resent-Message-Id: <200710120000.l9C00A6j058682@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Hein Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C8C716A419 for ; Thu, 11 Oct 2007 23:56:39 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (mx2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 6BF7F13C465 for ; Thu, 11 Oct 2007 23:56:38 +0000 (UTC) (envelope-from jhein@timing.com) Received: from bugs.timing.com (bugs.timing.com [206.168.13.186]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id l9BNMEGD011739; Thu, 11 Oct 2007 17:22:14 -0600 (MDT) (envelope-from jhein@timing.com) Received: from bugs.timing.com (localhost [127.0.0.1]) by bugs.timing.com (8.14.1/8.14.1) with ESMTP id l9BNMEva034870; Thu, 11 Oct 2007 17:22:14 -0600 (MDT) (envelope-from jhein@bugs.timing.com) Received: (from jhein@localhost) by bugs.timing.com (8.14.1/8.14.1/Submit) id l9BNMDE0034869; Thu, 11 Oct 2007 17:22:13 -0600 (MDT) (envelope-from jhein) Message-Id: <200710112322.l9BNMDE0034869@bugs.timing.com> Date: Thu, 11 Oct 2007 17:22:13 -0600 (MDT) From: John Hein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: vanhu@netasq.com Subject: ports/117128: ipsec-tools racoon.sh fails with /var on mfs X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Hein List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2007 00:00:11 -0000 >Number: 117128 >Category: ports >Synopsis: ipsec-tools racoon.sh fails with /var on mfs >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 12 00:00:10 UTC 2007 >Closed-Date: >Last-Modified: >Originator: John Hein >Release: FreeBSD 6.2-STABLE-20070417 i386 >Organization: Symmetricom >Environment: System: FreeBSD bugs.timing.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Apr 18 13:56:25 MDT 2007 jhein@bugs.timing.com:/usr/obj/usr/src/sys/BUGS i386 Applies to all supported versions of FreeBSD. >Description: racoon won't start because ... WARNING: /var/db/racoon is not a directory If /var/db/racoon is missing, racoon fails to start since /var/db/racoon is a "required_dir". Fine... If /var is an mfs (varmfs=YES or varmfs=AUTO when /var/run, etc. don't exist - see /etc/rc.d/var), /var/db/racoon does not get created on boot & /var population. /var/db/racoon is not created my mtree using BSD.var.dist (as it shouldn't be). So even if you create /var/db/racoon manually, every time you reboot, it will be gone. I see no good way to create that directory early before the required_dirs check in rc.subr. /var/db/racoon holds a socket, by the way. >How-To-Repeat: Install security/ipsec-tools. Run "env racoon_enable=YES /usr/local/etc/rc.d/racoon start". tail /var/log/messages ... to see the "WARNING" and observe that racoon is not running. Workaround: 'racoon forcestart', but that requires manual intervention. >Fix: Maintainer was notified on May 25, but there was no response. I had forgotten about my local patch until now... Have the racoon startup script [optionally] create its required dirs... Index: files/racoon.sh.in =================================================================== RCS file: /base/FreeBSD-CVS/ports/security/ipsec-tools/files/racoon.sh.in,v retrieving revision 1.4 diff -u -p -r1.4 racoon.sh.in --- files/racoon.sh.in 3 May 2006 16:01:58 -0000 1.4 +++ files/racoon.sh.in 25 May 2007 23:23:33 -0000 @@ -24,6 +24,8 @@ prefix=%%PREFIX%% [ -z "$racoon_enable" ] && racoon_enable="NO" # Disable by default #racoon_program="${prefix}/sbin/racoon" # Location of racoon #racoon_flags="" # Flags to racoon program +racoon_create_dirs=NO # Create $required_dirs (for + # /var mfs)? . %%RC_SUBR%% @@ -43,4 +45,7 @@ racoon_cleanup() { } load_rc_config $name +if [ "$1" = start ] && checkyesno "${name}_create_dirs"; then + /bin/mkdir -p $required_dirs +fi run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted: