Hi,
When I install the docker image: docker pull quay.io/bonitasoft/bonita-subscription:7.11.3
And I run it: docker run -e HTTP_API=true -e REST_API_DYN_AUTH_CHECKS=false --name bonita -v ~/bonita-lic/:/opt/bonita_lic/ -h localhost -d -p 8080:8080 quay.io/bonitasoft/bonita-subscription:7.11.3
Then get inside my container: sudo docker exec -it my-container-id bash
I wantto stop the bonita server with:
root@localhost:/# cd /opt/bonita/BonitaSubscription-7.11.3/
root@localhost:/opt/bonita/BonitaSubscription-7.11.3# ./stop-bonita.sh
Using CATALINA_BASE: /opt/bonita/BonitaSubscription-7.11.3/server
Using CATALINA_HOME: /opt/bonita/BonitaSubscription-7.11.3/server
Using CATALINA_TMPDIR: /opt/bonita/BonitaSubscription-7.11.3/server/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/bonita/BonitaSubscription-7.11.3/server/lib/ext/*:/opt/bonita/BonitaSubscription-7.11.3/server/bin/bootstrap.jar:/opt/bonita/BonitaSubscription-7.11.3/server/bin/tomcat-juli.jar
Using CATALINA_OPTS: -Dorg.bonitasoft.platform.setup.folder=/opt/bonita/BonitaSubscription-7.11.3/server/../setup -Dorg.bonitasoft.h2.database.dir=/opt/bonita/BonitaSubscription-7.11.3/server/../h2_database -Dsysprop.bonita.db.vendor=h2 -Dsysprop.bonita.bdm.db.vendor=h2 -Dcom.arjuna.ats.arjuna.common.propertiesFile=/opt/bonita/BonitaSubscription-7.11.3/server/conf/jbossts-properties.xml -Dorg.bonitasoft.engine.incident.folder=/opt/bonita/BonitaSubscription-7.11.3/server/logs -Dfile.encoding=UTF-8 -Xshare:auto -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/bonita/BonitaSubscription-7.11.3/server/logs -Djava.security.egd=file:/dev/./urandom
Using CATALINA_PID: /opt/bonita/BonitaSubscription-7.11.3/server/catalina.pid
$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted.
root@localhost:/opt/bonita/BonitaSubscription-7.11.3#
My Questions are:
- How do I stop bonita from inside my container? It doesn't say in the documentation: https://documentation.bonitasoft.com/bonita/7.11/bonita-docker-installation
- So how do I stop bonita? It doesn't say in the documentation: https://documentation.bonitasoft.com/bonita/7.11/bonita-docker-installation
- I try to do a kill -9 on my PID 1 but it doesn't work. Why is that? :
root@localhost:/opt/bonita/BonitaSubscription-7.11.3# ps -ef | grep BonitaSubscription
bonita 1 0 45 00:03 ? 00:01:01 /usr/bin/java -Djava.util.logging.config.file=/opt/bonita/BonitaSubscription-7.11.3/server/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dorg.bonitasoft.platform.setup.folder=/opt/bonita/BonitaSubscription-7.11.3/server/../setup -Dorg.bonitasoft.h2.database.dir=/opt/bonita/BonitaSubscription-7.11.3/server/../h2_database -Dsysprop.bonita.db.vendor=h2 -Dsysprop.bonita.bdm.db.vendor=h2 -Dcom.arjuna.ats.arjuna.common.propertiesFile=/opt/bonita/BonitaSubscription-7.11.3/server/conf/jbossts-properties.xml -Dorg.bonitasoft.engine.incident.folder=/opt/bonita/BonitaSubscription-7.11.3/server/logs -Dfile.encoding=UTF-8 -Xshare:auto -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/bonita/BonitaSubscription-7.11.3/server/logs -Djava.security.egd=file:/dev/./urandom -Dignore.endorsed.dirs= -classpath /opt/bonita/BonitaSubscription-7.11.3/server/lib/ext/*:/opt/bonita/BonitaSubscription-7.11.3/server/bin/bootstrap.jar:/opt/bonita/BonitaSubscription-7.11.3/server/bin/tomcat-juli.jar -Dcatalina.base=/opt/bonita/BonitaSubscription-7.11.3/server -Dcatalina.home=/opt/bonita/BonitaSubscription-7.11.3/server -Djava.io.tmpdir=/opt/bonita/BonitaSubscription-7.11.3/server/temp org.apache.catalina.startup.Bootstrap start
Thank for your help,