@@ -8,7 +8,7 @@ DEBUGLOG="/tmp/swss-syncd-debug$DEV.log"
88LOCKFILE=" /tmp/swss-syncd-lock$DEV "
99NAMESPACE_PREFIX=" asic"
1010ETC_SONIC_PATH=" /etc/sonic/"
11-
11+ TSA_TSB_SERVICE= " startup_tsa_tsb.service "
1212
1313. /usr/local/bin/asic_status.sh
1414
@@ -109,9 +109,9 @@ function clean_up_tables()
109109
110110# This function cleans up the chassis db table entries created ONLY by this asic
111111# This is used to do the clean up operation when the line card / asic reboots
112- # When the asic/lc is RE-booting, the chassis db server is supposed to be running
113- # in the supervisor. So the clean up is done when only the chassis db connectable.
114- # Otherwise no need to do the clean up since both the supervisor and line card may be
112+ # When the asic/lc is RE-booting, the chassis db server is supposed to be running
113+ # in the supervisor. So the clean up is done when only the chassis db connectable.
114+ # Otherwise no need to do the clean up since both the supervisor and line card may be
115115# rebooting (the whole chassis scenario)
116116# The clean up operation is required to delete only those entries created by
117117# the asic that is rebooted. Entries from the following tables are deleted in the order
@@ -212,7 +212,7 @@ function clean_up_chassis_db_tables()
212212 debug " Chassis db clean up for ${SERVICE} $DEV . Number of SYSTEM_LAG_MEMBER_TABLE entries deleted: $num_lag_mem "
213213
214214 # Wait for some time before deleting system lag so that the all the memebers of the
215- # system lag will be cleared.
215+ # system lag will be cleared.
216216 # This delay is needed only if some system lag members were deleted
217217
218218 if [[ $num_lag_mem > 0 ]]; then
@@ -258,6 +258,12 @@ start_peer_and_dependent_services() {
258258 check_warm_boot
259259
260260 if [[ x" $WARM_BOOT " != x" true" ]]; then
261+ SERVICES_CONF=" /usr/share/sonic/device/$PLATFORM /services.conf"
262+ if [[ -f $SERVICES_CONF ]] && grep -q " ^startup_tsa_tsb.service$" $SERVICES_CONF ; then
263+ echo " ${SERVICE} $DEV : starting TSA-TSB service"
264+ /bin/systemctl restart $TSA_TSB_SERVICE
265+ fi
266+
261267 for peer in ${PEER} ; do
262268 if [[ ! -z $DEV ]]; then
263269 /bin/systemctl start ${peer} @$DEV
0 commit comments