[keycloak-user] CLI scripts

Stan Silvert ssilvert at redhat.com
Wed Jul 17 10:05:44 EDT 2019


There is a CLI command to restart the server.  It does this without 
restarting the JVM.

/:reload(start-mode=normal)

On 7/16/2019 3:34 PM, Justin Williams wrote:
> Hello,
>
> I'm mounting a volume containing CLI scripts to my Keycloak Docker
> container "startup-scripts" directory, and the scripts execute, however
> they do not take effect if a reload is required. I'm not seeing how I can
> get the server to reload after executing all of the scripts.
> Any suggestions?
>
> Example (request-logging.cli):
>
> embed-server --server-config=standalone.xml --std-out=echo
>
> echo SETUP: Enabling detailed request logging
>
> /subsystem=undertow/configuration=filter/custom-filter=request-logging-filter:add(class-name=io.undertow.server.handlers.RequestDumpingHandler,
> module=io.undertow.core)
> /subsystem=undertow/server=default-server/host=default-host/filter-ref=request-logging-filter:add
>
> stop-embedded-server
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list