Skip to content

Commit

Permalink
Start startup_tsa_tsb.service only if services.conf file exists
Browse files Browse the repository at this point in the history
Signed-off-by: saksarav <sakthivadivu.saravanaraj@nokia.com>
  • Loading branch information
saksarav-nokia committed Oct 9, 2024
1 parent 6741c8c commit c65aeae
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
startup_tsa_tsb.service
1 change: 0 additions & 1 deletion files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,6 @@ sudo LANG=C cp $SCRIPTS_DIR/write_standby.py $FILESYSTEM_ROOT/usr/local/bin/writ
sudo LANG=C cp $SCRIPTS_DIR/mark_dhcp_packet.py $FILESYSTEM_ROOT/usr/local/bin/mark_dhcp_packet.py

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

sudo cp $BUILD_TEMPLATES/sonic.target $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM
sudo LANG=C chroot $FILESYSTEM_ROOT systemctl enable sonic.target
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/startup_tsa_tsb.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Description= STARTUP TSA-TSB SERVICE
Requires=config-setup.service database.service
After=config-setup.service database.service
Before=bgp.service
ConditionPathExists=!/etc/sonic/chassisdb.conf

[Service]
Environment="STARTED_BY_TSA_TSB_SERVICE=1"
Expand Down

0 comments on commit c65aeae

Please sign in to comment.