Skip to content

Commit

Permalink
Config reload fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsudharsan committed Jun 2, 2021
1 parent e50b6fc commit 0d6583a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions files/build_templates/delay.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
Description=SONiC delayed services target.

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion files/build_templates/mgmt-framework.timer
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ OnBootSec=3min 30 sec
Unit=mgmt-framework.service

[Install]
WantedBy=timers.target sonic.target
WantedBy=timers.target sonic.target delay.target
2 changes: 1 addition & 1 deletion files/build_templates/snmp.timer
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ OnBootSec=3min 30 sec
Unit=snmp.service

[Install]
WantedBy=timers.target swss.service
WantedBy=timers.target swss.service delay.target
3 changes: 3 additions & 0 deletions files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,9 @@ echo "mgmt-framework.timer" | 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

sudo cp $BUILD_TEMPLATES/delay.target $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM
sudo LANG=C chroot $FILESYSTEM_ROOT systemctl enable delay.target

sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get purge -y python-dev python3-dev
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get purge -y build-essential libssl-dev swig
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get purge -y libcairo2-dev libdbus-1-dev libgirepository1.0-dev libsystemd-dev pkg-config
Expand Down
2 changes: 1 addition & 1 deletion files/build_templates/telemetry.timer
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ OnBootSec=3min 30 sec
Unit=telemetry.service

[Install]
WantedBy=timers.target sonic.target
WantedBy=timers.target sonic.target delay.target

0 comments on commit 0d6583a

Please sign in to comment.