From f2103da09c710f48310ec2fe88c65467126ec06d Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Wed, 13 Oct 2021 21:07:44 -0700 Subject: [PATCH] [copp] bind copp-config.service to sonic.target (#8969) 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 8eed2353ed..bd15de80bc 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