forked from forgejo/forgejo
Fix regression: access log template, gitea manager cli command (#24838)
Close #24836  
This commit is contained in:
parent
2d3ebe889e
commit
ec2a01d1e2
9 changed files with 36 additions and 34 deletions
|
@ -244,6 +244,10 @@ func (g *Manager) DoGracefulRestart() {
|
|||
log.Error("Error whilst forking from PID: %d : %v", os.Getpid(), err)
|
||||
}
|
||||
}
|
||||
// doFork calls RestartProcess which starts a new Gitea process, so this parent process needs to exit
|
||||
// Otherwise some resources (eg: leveldb lock) will be held by this parent process and the new process will fail to start
|
||||
log.Info("PID: %d. Shutting down after forking ...", os.Getpid())
|
||||
g.doShutdown()
|
||||
} else {
|
||||
log.Info("PID: %d. Not set restartable. Shutting down...", os.Getpid())
|
||||
g.notify(stoppingMsg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue