How to stop quarkus based keycloak

Hi,
I am running quarkus based keycloak-ver18 in a pod. I wanted to stop keycloak and start again with additional parameter like “kc.sh start --log-level=DEBUG”.
How can I stop it?

Note that, I already have tried to kill the java process by pid and it is not killing the process for some reason.

Thanks,
Kabi

1 Like

Hi,
Joining the question…
why isn’t any kc.bat stop command?

Thanks,
Galit

No, the “kc.sh stop” does not stop kecylaok. I guess, “stop” is not an valid input for kc.sh. Here are steps.
(1) Run the keycloak-20.x in a docker container.
(2) “exec it” to the container, now try to stop the keycloak from /opt/kecloak/bin.

$ docker exec -it <container-id> /bin/sh

$ cd /opt/keycloak/bin
$ ./kc.sh stop
Unknown option: ‘stop’
Did you mean: tools or start-dev?
Try ‘kc.sh --help’ for more information on the available options.

Why I want to stop the keycloak in the container? I am collecting an optimal list of env variables for my final keycloak for prod. So, wanted to play with different env setting by stoping and starting the keycloak with new env variable while I am still inside the container bash shell.