diff --git a/templates/keycloak.service.erb b/templates/keycloak.service.erb index 6a9243f..aab12de 100644 --- a/templates/keycloak.service.erb +++ b/templates/keycloak.service.erb @@ -1,21 +1,22 @@ [Unit] Description=Jboss Application Server After=network.target [Service] Type=idle +SyslogIdentifier=keycloak <% if scope['keycloak::service_environment_file'] -%> EnvironmentFile=<%= scope['keycloak::service_environment_file'] %> <% end -%> User=<%= scope['keycloak::user'] %> Group=<%= scope['keycloak::group'] %> <% if scope['keycloak::operating_mode'] == 'standalone'-%> ExecStart=<%= scope['keycloak::install_base'] %>/bin/standalone.sh -b <%= scope['keycloak::service_bind_address'] %> -Djboss.http.port=<%= scope['keycloak::http_port'] %><% if scope['keycloak::service_extra_opts'] -%> <%= scope['keycloak::service_extra_opts'] -%><% end %> <% elsif scope['keycloak::operating_mode'] == 'clustered'-%> ExecStart=<%= scope['keycloak::install_base'] %>/bin/standalone.sh --server-config=standalone-ha.xml -b <%= scope['keycloak::service_bind_address'] %> -Djboss.http.port=<%= scope['keycloak::http_port'] %><% if scope['keycloak::service_extra_opts'] -%> <%= scope['keycloak::service_extra_opts'] -%><% end %> <% end -%> TimeoutStartSec=600 TimeoutStopSec=600 [Install] WantedBy=multi-user.target