mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2025-04-17 12:41:51 +00:00
fix module init on SIGHUP
This commit is contained in:
parent
de9bb6e23a
commit
62415aa45e
1 changed files with 4 additions and 3 deletions
7
main.go
7
main.go
|
@ -144,9 +144,10 @@ func main() {
|
|||
case syscall.SIGHUP:
|
||||
if yamlSource, err = loadConfiguration(); err != nil {
|
||||
log.WithError(err).Error("Unable to reload configuration")
|
||||
}
|
||||
if err = initializeModules(yamlSource); err != nil {
|
||||
log.WithError(err).Fatal("Unable to initialize modules")
|
||||
} else {
|
||||
if err = initializeModules(yamlSource); err != nil {
|
||||
log.WithError(err).Error("Unable to initialize modules")
|
||||
}
|
||||
}
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue