mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Fix Frigate stuck at finishing when restarting from UI (#5216)
This commit is contained in:
		
							parent
							
								
									f52de322d3
								
							
						
					
					
						commit
						feeb7107d5
					
				@ -628,8 +628,13 @@ def clipped(obj, frame_shape):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def restart_frigate():
 | 
			
		||||
    # S6 overlay is configured to exit once the Frigate process exits
 | 
			
		||||
    os.kill(os.getpid(), signal.SIGTERM)
 | 
			
		||||
    proc = psutil.Process(1)
 | 
			
		||||
    # if this is running via s6, sigterm pid 1
 | 
			
		||||
    if proc.name() == "s6-svscan":
 | 
			
		||||
        proc.terminate()
 | 
			
		||||
    # otherwise, just try and exit frigate
 | 
			
		||||
    else:
 | 
			
		||||
        os.kill(os.getpid(), signal.SIGTERM)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class EventsPerSecond:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user