You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "mark petrovic (JIRA)" <ji...@apache.org> on 2011/08/24 14:39:29 UTC
[jira] [Created] (AMQ-3471) bin/activemq startup script syntax
error when OS is of type darwin
bin/activemq startup script syntax error when OS is of type darwin
------------------------------------------------------------------
Key: AMQ-3471
URL: https://issues.apache.org/jira/browse/AMQ-3471
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.5.0
Environment: OS X 10.6.8
Reporter: mark petrovic
Priority: Minor
The startup script bin/activemq has a bug in the code leg when the OS is of type darwin.
Without the fix, the script emits to the console:
$ ./apache-activemq-5.5.0/bin/activemq console
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /Users/petrovic/.activemqrc)
INFO: Invoke the following command to create a configuration file
./apache-activemq-5.5.0/bin/activemq setup [ /etc/default/activemq | /Users/petrovic/.activemqrc ]
./apache-activemq-5.5.0/bin/activemq: line 252: [-z: command not found <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
INFO: Using java '/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java'
...
The following patch fixes this problem:
$ diff -u apache-activemq-5.5.0/bin/activemq ../tools/apache-activemq-5.5.0/bin/activemq
--- apache-activemq-5.5.0/bin/activemq 2011-03-28 11:39:43.000000000 -0700
+++ ../tools/apache-activemq-5.5.0/bin/activemq 2011-08-24 05:15:56.000000000 -0700
@@ -249,7 +249,7 @@
CYGWIN*) OSTYPE="cygwin" ;;
Darwin*)
OSTYPE="darwin"
- if [-z "$JAVA_HOME"] && [ "$JAVACMD" = "auto" ];then
+ if [ -z "$JAVA_HOME" ] && [ "$JAVACMD" = "auto" ];then
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
fi
;;
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQ-3471) bin/activemq startup script syntax
error when OS is of type darwin
Posted by "Dejan Bosanac (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dejan Bosanac resolved AMQ-3471.
--------------------------------
Resolution: Duplicate
Assignee: Dejan Bosanac
This has already been fixed on trunk
http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/bin/activemq?r1=1088979&r2=1088978&pathrev=1088979
> bin/activemq startup script syntax error when OS is of type darwin
> ------------------------------------------------------------------
>
> Key: AMQ-3471
> URL: https://issues.apache.org/jira/browse/AMQ-3471
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.0
> Environment: OS X 10.6.8
> Reporter: mark petrovic
> Assignee: Dejan Bosanac
> Priority: Minor
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The startup script bin/activemq has a bug in the code leg when the OS is of type darwin.
> Without the fix, the script emits to the console:
> $ ./apache-activemq-5.5.0/bin/activemq console
> INFO: Using default configuration
> (you can configure options in one of these file: /etc/default/activemq /Users/petrovic/.activemqrc)
> INFO: Invoke the following command to create a configuration file
> ./apache-activemq-5.5.0/bin/activemq setup [ /etc/default/activemq | /Users/petrovic/.activemqrc ]
> ./apache-activemq-5.5.0/bin/activemq: line 252: [-z: command not found <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> INFO: Using java '/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java'
> ...
> The following patch fixes this problem:
> $ diff -u apache-activemq-5.5.0/bin/activemq ../tools/apache-activemq-5.5.0/bin/activemq
> --- apache-activemq-5.5.0/bin/activemq 2011-03-28 11:39:43.000000000 -0700
> +++ ../tools/apache-activemq-5.5.0/bin/activemq 2011-08-24 05:15:56.000000000 -0700
> @@ -249,7 +249,7 @@
> CYGWIN*) OSTYPE="cygwin" ;;
> Darwin*)
> OSTYPE="darwin"
> - if [-z "$JAVA_HOME"] && [ "$JAVACMD" = "auto" ];then
> + if [ -z "$JAVA_HOME" ] && [ "$JAVACMD" = "auto" ];then
> JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
> fi
> ;;
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira