title: run 2 java process in DOCKERFILE
body: <p>I have an ignite(gridgain-community) statefulset cluster in kuberntes.
  I created sucssfuly image from the below docker (the cmd runs jmx exporter) :</p>
  <pre><code>FROM gridgain/community:8.8.1-slim
  
  USER root
  RUN mkdir -p /opt/jmx_exporter/
  
  COPY ./jmx/*  /opt/jmx_exporter/
  RUN chmod 700 /opt/jmx_exporter/start.sh
  CMD [&quot;/bin/sh&quot;, &quot;/opt/jmx_exporter/start.sh&quot;]
  </code></pre>
  <p>but when I start the chart from this image the pod is running but not ready :</p>
  <pre><code>NAME          READY   STATUS    RESTARTS   AGE
  online-db-0   0/1     Running   3          4m2s
  </code></pre>
  <p>and in describe:</p>
  <pre><code>  Normal   Started    51s                kubelet, samppc01srv01kbr002.novalocal  Started container online-db
    Warning  Unhealthy  12s (x3 over 32s)  kubelet, samppc01srv01kbr002.novalocal  Liveness probe failed: Get http://10.233.109.23:8080/ignite?cmd=version: dial tcp 10.233.109.23:8080: connect: connection refused
    Normal   Killing    12s                kubelet, samppc01srv01kbr002.novalocal  Container online-db failed liveness probe, will be restarted
    Warning  Unhealthy  9s (x3 over 29s)   kubelet, samppc01srv01kbr002.novalocal  Readiness probe failed: Get http://&lt;IP&gt;/ignite?cmd=probe: dial tcp &lt;ip&gt;:8080: connect: connection refused
  </code></pre>
  <p>when I check in the pod I see only jmx is up and ignite java is down it did worked when I start jmx manually on ignite container:</p>
  <pre><code>bash-4.4# ps -ef | grep java
      6 root      0:01 java -Djava.net.preferIPv4Stack=true -jar /opt/jmx_exporter/jmx_prometheus_httpserver-0.12.0-jar-with-dependencies.jar 5556 /opt/jmx_exporter/config.yml
     26 root      0:00 grep java
  </code></pre>
  <p>start.sh - the java_script</p>
  <pre><code>!/bin/sh
  
  if [ -z &quot;$SERVICE_PORT&quot; ]; then
   
  
       SERVICE_PORT=5556
      fi
      
      if [ -z &quot;$JVM_OPTS&quot; ]; then
        JVM_OPTS=&quot;-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=5555&quot;
      fi
      
      if [ -z &quot;$CONFIG_YML&quot; ]; then
        CONFIG_YML=/opt/jmx_exporter/config.yml
      fi
      
      VERSION=0.12.0
      
      java $JVM_OPTS -jar /opt/jmx_exporter/jmx_prometheus_httpserver-$VERSION-jar-with-dependencies.jar $SERVICE_PORT $CONFIG_YML
  </code></pre>
  <p>nothing is in the logs can someone assist why this happenes?</p>