Date: Thu, 25 Jul 2013 14:15:51 GMT From: Attila Nagy <bra@fsn.hu> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/180839: activemq.hostname hostname variable in rc.d/activemq Message-ID: <201307251415.r6PEFpGS071691@oldred.freebsd.org> Resent-Message-ID: <201307251420.r6PEK1lO041636@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 180839 >Category: ports >Synopsis: activemq.hostname hostname variable in rc.d/activemq >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 25 14:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Attila Nagy >Release: >Organization: >Environment: >Description: I use activemq in a netbooted environment, where each machine's configuration is the same. This prevents -for example- running activemq in network of brokers setup, because each broker has to have a unique identifier. To overcome this, I've patched the init script to include the machine's hostname, which can then be used for this -and other- purposes in the configuration file. Could you please add this? Thanks, >How-To-Repeat: >Fix: Patch attached with submission follows: Index: activemq =================================================================== --- activemq (revision 26755) +++ activemq (working copy) @@ -53,6 +53,7 @@ -Dactivemq.conf=${activemq_conf} \ -Dactivemq.data=${activemq_data} \ -Dactivemq.home=${activemq_home} \ + -Dactivemq.hostname=`hostname` \ -Dactivemq.base=${activemq_home}" java_command="/usr/local/bin/java ${java_options} ${jar_file}" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307251415.r6PEFpGS071691>