mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	upgrade: Call start-server rather than restart-server if we stopped it.
This saves a little time, and thus causes a shorter outage window, since we will not try to stop the services; we know they are already down.
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							16650ba239
						
					
				
				
					commit
					6db454b252
				
			| @@ -307,7 +307,11 @@ if migrations_needed: | ||||
| subprocess.check_call(["./manage.py", "create_realm_internal_bots"], preexec_fn=su_to_zulip) | ||||
|  | ||||
| logging.info("Restarting Zulip...") | ||||
| subprocess.check_output(["./scripts/restart-server", "--fill-cache"], preexec_fn=su_to_zulip) | ||||
| if IS_SERVER_UP: | ||||
|     subprocess.check_output(["./scripts/restart-server", "--fill-cache"], preexec_fn=su_to_zulip) | ||||
| else: | ||||
|     subprocess.check_output(["./scripts/start-server", "--fill-cache"], preexec_fn=su_to_zulip) | ||||
|  | ||||
| logging.info("Upgrade complete!") | ||||
|  | ||||
| if args.audit_fts_indexes: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user