Skip to content

Commit

Permalink
[copp] bind copp-config.service to sonic.target (#8969)
Browse files Browse the repository at this point in the history
copp-config service needs to be started after sonic.target so that it could
render the copp-config with the latest information.

It also needs to be restarted when config reload or load_minigraph is invoked.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
  • Loading branch information
yxieca authored and qiluo-msft committed Oct 15, 2021
1 parent dfc4bc5 commit f1d5aac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/image_config/copp/copp-config.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
Description=Update CoPP configuration
Requires=updategraph.service
After=updategraph.service
BindsTo=sonic.target
After=sonic.target

[Service]
Type=oneshot
ExecStart=/usr/bin/copp-config.sh

[Install]
WantedBy=multi-user.target
WantedBy=sonic.target

0 comments on commit f1d5aac

Please sign in to comment.