Move other options from the systemd unit to the conf file.

This commit is contained in:
Andrea Dell'Amico 2024-04-02 14:21:21 +02:00
parent a551dbbe54
commit bd41510ba7
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 9 additions and 1 deletions

View File

@ -4,6 +4,14 @@ http-enabled={{ keycloak_http_enabled }}
http-host={{ keycloak_listen }}
http-port={{ keycloak_http_port }}
{% if not keycloak_optimize_build_at_startup %}
optimized=true
{% endif %}
{% if keycloak_upgrade_db_at_startup %}
spi-connections-jpa-default-migration-strategy=update
{% endif %}
# Database
# The database vendor.
db={{ keycloak_db_vendor }}

View File

@ -24,7 +24,7 @@ User={{ keycloak_user }}
Group={{ keycloak_user }}
SuccessExitStatus=0 143
UMask=0027
ExecStart={{ keycloak_runtime_home }}/bin/kc.sh start{% if not keycloak_optimize_build_at_startup %} --optimized{% endif %}{% if keycloak_upgrade_db_at_startup %} --spi-connections-jpa-default-migration-strategy=update{% endif %}
ExecStart={{ keycloak_runtime_home }}/bin/kc.sh start
[Install]
WantedBy=multi-user.target