Add User and Group directives in systemd unit file

This commit is contained in:
Massimo Schiavon 2023-08-08 16:52:23 +02:00 committed by GitHub
parent 345c50fb85
commit 07b1c514bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,8 @@ StartLimitBurst={{ keycloak_service_startlimitburst }}
[Service] [Service]
Type=forking Type=forking
User={{ keycloak_service_user }}
Group={{ keycloak_service_group }}
EnvironmentFile=-/etc/sysconfig/keycloak EnvironmentFile=-/etc/sysconfig/keycloak
PIDFile={{ keycloak_service_pidfile }} PIDFile={{ keycloak_service_pidfile }}
ExecStart={{ keycloak_dest }}/keycloak-service.sh start ExecStart={{ keycloak_dest }}/keycloak-service.sh start