ansible-role-keycloak/templates/keycloak.service.j2

19 lines
693 B
Plaintext
Raw Normal View History

[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 -P {{ keycloak_properties_directory }}/wildfly.properties -b {{ keycloak_listen }} {% if keycloak_wildfly_clustered %}--server-config=standalone-ha.xml -Djboss.node.name={{ keycloak_wildfly_cluster_node_name }}{% endif %}
2020-06-19 19:36:53 +02:00
TimeoutStartSec=600
TimeoutStopSec=600
[Install]
WantedBy=multi-user.target