OSS parts of sighup license reload (#11767)
This commit is contained in:
parent
5e55f1b3fe
commit
c8cfcd9514
|
@ -1562,6 +1562,11 @@ func (c *ServerCommand) Run(args []string) int {
|
|||
c.UI.Error(fmt.Sprintf("Error(s) were encountered during reload: %s", err))
|
||||
}
|
||||
|
||||
// Reload license file
|
||||
if err := vault.LicenseReload(core); err != nil {
|
||||
c.UI.Error(fmt.Sprintf("Error reloading license: %v", err))
|
||||
}
|
||||
|
||||
case <-c.SigUSR2Ch:
|
||||
logWriter := c.logger.StandardWriter(&hclog.StandardLoggerOptions{})
|
||||
pprof.Lookup("goroutine").WriteTo(logWriter, 2)
|
||||
|
|
|
@ -124,6 +124,7 @@ var (
|
|||
LicenseAutoloaded = func(*Core) bool { return false }
|
||||
LicenseInitCheck = func(*Core) error { return nil }
|
||||
LicenseSummary = func(*Core) (*LicenseState, error) { return nil, nil }
|
||||
LicenseReload = func(*Core) error { return nil }
|
||||
)
|
||||
|
||||
// NonFatalError is an error that can be returned during NewCore that should be
|
||||
|
|
Loading…
Reference in New Issue