daemon: Allow StartOrReloadService to recover from FATAL state
This commit is contained in:
parent
ea464cef8d
commit
1e57c06295
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ func (s *StartedService) waitForStarted(ctx context.Context) error {
|
|||
func (s *StartedService) StartOrReloadService(profileContent string, options *OverrideOptions) error {
|
||||
s.serviceAccess.Lock()
|
||||
switch s.serviceStatus.Status {
|
||||
case ServiceStatus_IDLE, ServiceStatus_STARTED, ServiceStatus_STARTING:
|
||||
case ServiceStatus_IDLE, ServiceStatus_STARTED, ServiceStatus_STARTING, ServiceStatus_FATAL:
|
||||
default:
|
||||
s.serviceAccess.Unlock()
|
||||
return os.ErrInvalid
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue