From 8cea290a53c5ea5d3af2b770aa12dcd570c2f50b Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Wed, 13 Oct 2021 21:58:38 +0000 Subject: [PATCH] [copp] bind copp-config.service to sonic.target 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 --- files/image_config/copp/copp-config.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/image_config/copp/copp-config.service b/files/image_config/copp/copp-config.service index 8eed2353eddf..bd15de80bc5f 100644 --- a/files/image_config/copp/copp-config.service +++ b/files/image_config/copp/copp-config.service @@ -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