mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-10-31 01:57:48 +00:00 
			
		
		
		
	[database-chassis]: Fix the way database-chassis start (#6099)
The service crash when the platform boots due to missing waits. /usr/bin/database.sh tries to operate on a missing socket and fails. We now wait for the chassis database to be ready the same way we do database.
This commit is contained in:
		| @@ -50,8 +50,6 @@ if [[ $DATABASE_TYPE == "chassisdb" ]]; then | ||||
|     # Docker init for database-chassis | ||||
|     echo "Init docker-database-chassis..." | ||||
|     update_chassisdb_config -j $db_cfg_file_tmp -k -p $chassis_db_port | ||||
|     mkdir -p /var/run/redis/sonic-db | ||||
|     cp /etc/default/sonic-db/database_config.json /var/run/redis/sonic-db | ||||
|     # generate all redis server supervisord configuration file | ||||
|     sonic-cfggen -j $db_cfg_file_tmp -t /usr/share/sonic/templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf | ||||
|     rm $db_cfg_file_tmp | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Samuel Angebault
					Samuel Angebault