Skip to content

Commit 471bc9a

Browse files
saksarav-nokiamssonicbld
authored andcommitted
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 43734aa commit 471bc9a

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
@@ -1016,7 +1016,6 @@ sudo LANG=C cp $SCRIPTS_DIR/write_standby.py $FILESYSTEM_ROOT/usr/local/bin/writ
10161016
sudo LANG=C cp $SCRIPTS_DIR/mark_dhcp_packet.py $FILESYSTEM_ROOT/usr/local/bin/mark_dhcp_packet.py
10171017

10181018
sudo cp files/build_templates/startup_tsa_tsb.service $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM/
1019-
echo "startup_tsa_tsb.service" | sudo tee -a $GENERATED_SERVICE_FILE
10201019

10211020
sudo cp $BUILD_TEMPLATES/sonic.target $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM
10221021
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)