Skip to content

Commit

Permalink
Revert "Enable sairedis counter thread in 3 minutes after SONiC was s…
Browse files Browse the repository at this point in the history
…tarted (sonic-net#1813)"

This reverts commit 6568203.
  • Loading branch information
bolv committed Jul 30, 2018
1 parent 2eb0981 commit a10c2e6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 38 deletions.
7 changes: 0 additions & 7 deletions files/build_templates/enable_counters.service

This file was deleted.

9 changes: 0 additions & 9 deletions files/build_templates/enable_counters.timer

This file was deleted.

7 changes: 5 additions & 2 deletions files/build_templates/snmp.service.j2
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[Unit]
Description=SNMP container
Requires=updategraph.service swss.service enable_counters.service
After=updategraph.service swss.service enable_counters.service
Requires=updategraph.service swss.service
After=updategraph.service swss.service

[Service]
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
ExecStart=/usr/bin/{{docker_container_name}}.sh attach
ExecStop=/usr/bin/{{docker_container_name}}.sh stop

[Install]
WantedBy=multi-user.target
9 changes: 0 additions & 9 deletions files/build_templates/snmp.timer

This file was deleted.

8 changes: 0 additions & 8 deletions files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,6 @@ sudo LANG=C chroot $FILESYSTEM_ROOT fuser -km /sys || true
sudo LANG=C chroot $FILESYSTEM_ROOT umount -lf /sys
{% endif %}

# Copy systemd timer configuration
# It implements delayed start of services
sudo cp $BUILD_TEMPLATES/enable_counters.timer $FILESYSTEM_ROOT/etc/systemd/system/
sudo cp $BUILD_TEMPLATES/enable_counters.service $FILESYSTEM_ROOT/etc/systemd/system/
sudo cp $BUILD_TEMPLATES/snmp.timer $FILESYSTEM_ROOT/etc/systemd/system/
sudo LANG=C chroot $FILESYSTEM_ROOT systemctl enable enable_counters.timer
sudo LANG=C chroot $FILESYSTEM_ROOT systemctl enable snmp.timer

sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get remove -y python-dev
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get clean -y
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get autoremove -y
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-sairedis
2 changes: 1 addition & 1 deletion src/sonic-swss
2 changes: 1 addition & 1 deletion src/sonic-utilities

0 comments on commit a10c2e6

Please sign in to comment.