18 lines
575 B
Plaintext
18 lines
575 B
Plaintext
|
[Unit]
|
||
|
Description=Keycloak Application Server
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=idle
|
||
|
Environment=JBOSS_HOME={{ keycloak_runtime_home }}
|
||
|
Environment=JBOSS_LOG_DIR={{ keycloak_log_directory }}
|
||
|
Environment="JAVA_OPTS=-Xms{{ keycloak_java_min_heap }} -Xmx{{ keycloak_java_max_heap }}"
|
||
|
User={{ keycloak_user }}
|
||
|
Group={{ keycloak_user }}
|
||
|
ExecStart={{ keycloak_runtime_home }}/bin/standalone.sh -b {{ keycloak_listen }} {% if keycloak_wildfly_clustered %} --server-config=standalone-ha.xml{% endif %}
|
||
|
TimeoutStartSec=600
|
||
|
TimeoutStopSec=600
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|