Advertisement
rotulet

/etc/default/activemq

Jul 23rd, 2015
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.90 KB | None | 0 0
  1. #!/bin/sh
  2. # ------------------------------------------------------------------------
  3. # Licensed to the Apache Software Foundation (ASF) under one or more
  4. # contributor license agreements.  See the NOTICE file distributed with
  5. # this work for additional information regarding copyright ownership.
  6. # The ASF licenses this file to You under the Apache License, Version 2.0
  7. # (the "License"); you may not use this file except in compliance with
  8. # the License.  You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. # ------------------------------------------------------------------------
  18. # Configuration file for running Apache Active MQ as standalone provider
  19.  
  20.  
  21. # Set jvm memory configuration
  22. if [ -z "$ACTIVEMQ_OPTS_MEMORY" ] ; then
  23.     ACTIVEMQ_OPTS_MEMORY="-Xms1G -Xmx1G"
  24. fi
  25.  
  26. if [ -z "$ACTIVEMQ_OPTS" ] ; then
  27.     ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config"
  28. fi
  29.  
  30. # Uncomment to enable audit logging
  31. #ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS -Dorg.apache.activemq.audit=true"
  32.  
  33. # Set jvm jmx configuration
  34. # This enables jmx access over a configured jmx-tcp-port.
  35. # You have to configure the first four settings if you run a ibm jvm, caused by the
  36. # fact that IBM's jvm does not support VirtualMachine.attach(PID).
  37. # JMX access is needed for quering a running activemq instance to gain data or to
  38. # trigger management operations.
  39. #
  40. # Example for ${ACTIVEMQ_CONF}/jmx.access:
  41. # ---
  42. # # The "monitorRole" role has readonly access.
  43. # # The "controlRole" role has readwrite access.
  44. # monitorRole readonly
  45. # controlRole readwrite
  46. # ---
  47. #
  48. # Example for ${ACTIVEMQ_CONF}/jmx.password:
  49. # ---
  50. # # The "monitorRole" role has password "abc123".
  51. # # # The "controlRole" role has password "abcd1234".
  52. # monitorRole abc123
  53. # controlRole abcd1234
  54. # ---
  55. #
  56. # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099 "
  57. # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password"
  58. # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access"
  59. # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false"
  60. ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote"
  61.  
  62. # Set jvm jmx configuration for controlling the broker process
  63. # You only have to configure the first four settings if you run a ibm jvm, caused by the
  64. # fact that IBM's jvm does not support VirtualMachine.attach(PID)
  65. # (see also com.sun.management.jmxremote.port, .jmx.password.file and .jmx.access.file )
  66. #ACTIVEMQ_SUNJMX_CONTROL="--jmxurl service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/jmxrmi --jmxuser controlRole --jmxpassword abcd1234"
  67. ACTIVEMQ_SUNJMX_CONTROL=""
  68.  
  69. # Specify the queue manager URL for using "browse" option of sysv initscript
  70. if [ -z "$ACTIVEMQ_QUEUEMANAGERURL" ]; then
  71.     ACTIVEMQ_QUEUEMANAGERURL="--amqurl tcp://localhost:61616"
  72. fi
  73.  
  74. # Set additional JSE arguments
  75. ACTIVEMQ_SSL_OPTS=""
  76.  
  77. # Uncomment to enable remote debugging
  78. #ACTIVEMQ_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
  79.  
  80. # ActiveMQ tries to shutdown the broker by jmx,
  81. # after a specified number of seconds send SIGKILL
  82. if [ -z "$ACTIVEMQ_KILL_MAXSECONDS" ]; then
  83.     ACTIVEMQ_KILL_MAXSECONDS=30
  84. fi
  85.  
  86. # Active MQ installation dirs
  87. # ACTIVEMQ_HOME="<Installationdir>/"
  88. # ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
  89. # ACTIVEMQ_CONF="$ACTIVEMQ_BASE/conf"
  90. # ACTIVEMQ_DATA="$ACTIVEMQ_BASE/data"
  91. # ACTIVEMQ_TMP="$ACTIVEMQ_BASE/tmp"
  92.  
  93. # Configure a user with non root privileges, if no user is specified do not change user
  94. # (the entire activemq installation should be owned by this user)
  95. ACTIVEMQ_USER="activemq"
  96.  
  97. # location of the pidfile
  98. # ACTIVEMQ_PIDFILE="$ACTIVEMQ_DATA/activemq.pid"
  99.  
  100. # Location of the java installation
  101. # Specify the location of your java installation using JAVA_HOME, or specify the
  102. # path to the "java" binary using JAVACMD
  103. # (set JAVACMD to "auto" for automatic detection)
  104. #JAVA_HOME=""
  105. JAVACMD="auto"
  106. ACTIVEMQ_BASE="/mnt/shared/geoserver_config/cluster/carto-geoserver-1-slave/activemq"
  107. ACTIVEMQ_DATA="/mnt/shared/geoserver_config/cluster/carto-geoserver-1-slave/activemq/data"
  108. ACTIVEMQ_CONF="/mnt/shared/geoserver_config/cluster/carto-geoserver-1-slave/activemq/conf"
  109. ACTIVEMQ_TMP="/mnt/shared/geoserver_config/cluster/carto-geoserver-1-slave/activemq/tmp"
  110. ACTIVEMQ_PIDFILE="/mnt/shared/geoserver_config/cluster/carto-geoserver-1-slave/activemq/activemq.pid"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement