Skip to content

Commit 5681eb9

Browse files
Start startup_tsa_tsb.service only if services.conf file exists (#20315)
Fix #20049 Currently, the startup_tsa_tsb.service is started for all the platforms and the service exists if startup-tsa-tsb.conf doesn't exist for the platform. Signed-off-by: saksarav <[email protected]>
1 parent f3cf9b9 commit 5681eb9

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
startup_tsa_tsb.service

files/build_templates/sonic_debian_extension.j2

-1
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,6 @@ sudo LANG=C cp $SCRIPTS_DIR/write_standby.py $FILESYSTEM_ROOT/usr/local/bin/writ
10391039
sudo LANG=C cp $SCRIPTS_DIR/mark_dhcp_packet.py $FILESYSTEM_ROOT/usr/local/bin/mark_dhcp_packet.py
10401040

10411041
sudo cp files/build_templates/startup_tsa_tsb.service $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM/
1042-
echo "startup_tsa_tsb.service" | sudo tee -a $GENERATED_SERVICE_FILE
10431042

10441043
sudo cp $BUILD_TEMPLATES/sonic.target $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM
10451044
sudo LANG=C chroot $FILESYSTEM_ROOT systemctl enable sonic.target

files/build_templates/startup_tsa_tsb.service

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Description= STARTUP TSA-TSB SERVICE
33
Requires=config-setup.service database.service
44
After=config-setup.service database.service
55
Before=bgp.service
6-
ConditionPathExists=!/etc/sonic/chassisdb.conf
76

87
[Service]
98
Environment="STARTED_BY_TSA_TSB_SERVICE=1"

0 commit comments

Comments
 (0)