[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 <ying.xie@microsoft.com>
This commit is contained in:
parent
2436f96c0a
commit
f2103da09c
@ -2,10 +2,12 @@
|
|||||||
Description=Update CoPP configuration
|
Description=Update CoPP configuration
|
||||||
Requires=updategraph.service
|
Requires=updategraph.service
|
||||||
After=updategraph.service
|
After=updategraph.service
|
||||||
|
BindsTo=sonic.target
|
||||||
|
After=sonic.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/copp-config.sh
|
ExecStart=/usr/bin/copp-config.sh
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=sonic.target
|
||||||
|
Loading…
Reference in New Issue
Block a user