From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 6 07:35:04 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF23016B6D0 for ; Tue, 6 Jun 2006 07:30:30 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7701343D5F for ; Tue, 6 Jun 2006 07:30:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k567UQic099905 for ; Tue, 6 Jun 2006 07:30:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k567UQBO099902; Tue, 6 Jun 2006 07:30:26 GMT (envelope-from gnats) Resent-Date: Tue, 6 Jun 2006 07:30:26 GMT Resent-Message-Id: <200606060730.k567UQBO099902@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, srwadleigh Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14F8F16AE98 for ; Tue, 6 Jun 2006 07:22:39 +0000 (UTC) (envelope-from srw@mail.mad.udor.net) Received: from mail.mad.udor.net (mad.mas.udor.net [64.34.95.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA84543D45 for ; Tue, 6 Jun 2006 07:22:38 +0000 (GMT) (envelope-from srw@mail.mad.udor.net) Received: by mail.mad.udor.net (Postfix, from userid 1001) id 295C24112; Tue, 6 Jun 2006 03:22:36 -0400 (EDT) Message-Id: <20060606072236.295C24112@mail.mad.udor.net> Date: Tue, 6 Jun 2006 03:22:36 -0400 (EDT) From: srwadleigh To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: srw@udor.net Subject: ports/98580: a dbus rc script does not support a dynamic /var, specifically the creation of the /var/run/dbus directory. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: srwadleigh List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 07:35:18 -0000 >Number: 98580 >Category: ports >Synopsis: a dbus rc script does not support a dynamic /var, specifically the creation of the /var/run/dbus directory. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 06 07:30:26 GMT 2006 >Closed-Date: >Last-Modified: >Originator: srwadleigh >Release: FreeBSD 6.1-STABLE i386 >Organization: >Environment: FreeBSD 6.1-STABLE FreeBSD 6.1-STABLE: Tue Jun 6 02:30:24 EDT 2006 i386 >Description: dbus rc script does not support a dynamic /var, specifically the creation of the /var/run/dbus directory. This results in dbus not starting if either /var or /var/run is mounted from an mfs volume where /var/run/dbus created during port install is no longer present. >How-To-Repeat: /var/run/dbus directory is not recreated in the presence of a dynamic /var or /var/run, in my case when mounting /var from mfs. >Fix: I altered the rc script to create and delete the /var/run/dbus directory on start and stop commands. --- dbus.orig Tue Jun 6 03:09:32 2006 +++ dbus.new Tue Jun 6 03:09:32 2006 @@ -21,17 +21,17 @@ command="/usr/local/bin/dbus-daemon" pidfile="/var/run/dbus/${name}.pid" +start_precmd=${name}_prestart stop_postcmd=stop_postcmd -start_precmd() +dbus_prestart() { - mkdir `dirname ${pidfile}` >/dev/null - [ $? -eq 0 ] && chmod 751 ${pidfile} + mkdir `dirname ${pidfile}` } stop_postcmd() { - rm -f $pidfile + rm -rf `dirname ${pidfile}` } > cat dbus.diff --- dbus.orig Tue Jun 6 03:09:32 2006 +++ dbus.new Tue Jun 6 03:09:32 2006 @@ -21,17 +21,17 @@ command="/usr/local/bin/dbus-daemon" pidfile="/var/run/dbus/${name}.pid" +start_precmd=${name}_prestart stop_postcmd=stop_postcmd -start_precmd() +dbus_prestart() { - mkdir `dirname ${pidfile}` >/dev/null - [ $? -eq 0 ] && chmod 751 ${pidfile} + mkdir `dirname ${pidfile}` } stop_postcmd() { - rm -f $pidfile + rm -rf `dirname ${pidfile}` } >Release-Note: >Audit-Trail: >Unformatted: