GluuFederation / community-edition-setup

Scripts and templates to automate deployment and configuration of the Gluu Server Community Edition
https://gluu.org/docs/ce
MIT License
188 stars 58 forks source link

fix: oxauth should start after db backend #973

Closed devrimyatar closed 1 year ago

devrimyatar commented 1 year ago

This is current oxauth service unit file

[Unit]
Description=Oxauth service
After=opendj.service

[Service]
Type=forking
ExecStart=%(distFolder)s/scripts/oxauth start
ExecStop=%(distFolder)s/scripts/oxauth stop
User=%(service_user)s
Group=gluu
TimeoutSec=300

[Install]
WantedBy=multi-user.target

It starts after opendj but in case of other db backends, it may fail if backend did not start before jans-auth. After=opendj.service should be changed according to db backend. For remote db backends we can set it After=network.target