From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 5 03:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 13570777 for ; Mon, 5 Aug 2013 03:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D2F092547 for ; Mon, 5 Aug 2013 03:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r753K07L029336 for ; Mon, 5 Aug 2013 03:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r753K019029331; Mon, 5 Aug 2013 03:20:00 GMT (envelope-from gnats) Resent-Date: Mon, 5 Aug 2013 03:20:00 GMT Resent-Message-Id: <201308050320.r753K019029331@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, Brad Davis Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6F5BC574 for ; Mon, 5 Aug 2013 03:10:53 +0000 (UTC) (envelope-from brad@liquidneon.com) Received: from valentine.liquidneon.com (cl-1479.chi-02.us.sixxs.net [IPv6:2001:4978:f:5c6::2]) by mx1.freebsd.org (Postfix) with ESMTP id 477E624DA for ; Mon, 5 Aug 2013 03:10:53 +0000 (UTC) Received: by valentine.liquidneon.com (Postfix, from userid 1001) id BB1E78FF88; Sun, 4 Aug 2013 21:10:46 -0600 (MDT) Message-Id: <20130805031046.BB1E78FF88@valentine.liquidneon.com> Date: Sun, 4 Aug 2013 21:10:46 -0600 (MDT) From: Brad Davis To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/181043: [patch] databases/py-carbon: Enhance the init script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Brad Davis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Aug 2013 03:20:01 -0000 >Number: 181043 >Category: ports >Synopsis: [patch] databases/py-carbon: Enhance the init script >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Aug 05 03:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Brad Davis >Release: FreeBSD 9.1-RELEASE-p5 i386 >Organization: >Environment: >Description: Enhance the init script to require the appropriate config files and fix the stop routine to wait for the server to exit. >How-To-Repeat: >Fix: --- py-carbon.patch begins here --- Index: databases/py-carbon/files/carbon.in =================================================================== --- databases/py-carbon/files/carbon.in (revision 324248) +++ databases/py-carbon/files/carbon.in (working copy) @@ -41,6 +41,7 @@ status_cmd="${name}_status" stop_cmd="${name}_stop" +required_files="${carbon_conf} /usr/local/etc/carbon/storage-schemas.conf" command_interpreter="/usr/local/bin/python2.7" command="/usr/local/bin/carbon-cache.py" @@ -48,8 +49,10 @@ carbon_stop() { echo "Stopping $name" + pids=`check_pidfile ${carbon_pidfile} ${command} ${command_interpreter}` /usr/local/bin/carbon-cache.py --config=${carbon_conf} --pidfile ${carbon_pidfile} stop + wait_for_pids ${pids} } carbon_status() { --- py-carbon.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: