Date: Sun, 4 Aug 2013 21:10:46 -0600 (MDT) From: Brad Davis <brd@FreeBSD.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/181043: [patch] databases/py-carbon: Enhance the init script Message-ID: <20130805031046.BB1E78FF88@valentine.liquidneon.com> Resent-Message-ID: <201308050320.r753K019029331@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130805031046.BB1E78FF88>