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 judyjoseph committed Oct 14, 2021
1 parent 2436f96 commit f2103da
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 f2103da

Please sign in to comment.