23 lines
549 B
SYSTEMD
23 lines
549 B
SYSTEMD
|
[Unit]
|
||
|
Description=Keycloak
|
||
|
#Requires=mysql.service
|
||
|
#Requires=mariadb.service
|
||
|
#Requires=postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/opt/keycloak/bin/kc.sh start
|
||
|
Restart=always
|
||
|
User=keycloak
|
||
|
Group=keycloak
|
||
|
WorkingDirectory=/opt/keycloak
|
||
|
CapabilityBoundingSet=
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|
||
|
|
||
|
## To clear the theme cache (use systemctl edit keycloak.service, then paste this at the top)
|
||
|
#[Service]
|
||
|
#ExecStart=
|
||
|
#ExecStart=/opt/keycloak/bin/kc.sh start --spi-theme-static-max-age=-1 --spi-theme-cache-themes=false --spi-theme-cache-templates=false
|