Skip to content

Commit

Permalink
[macsec]: Bind macsec service to sonic.target (#7642)
Browse files Browse the repository at this point in the history
MACsec service cannot be enabled by "sudo config feature state macsec enabled"

Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur authored May 18, 2021
1 parent 359c6bb commit 8f883fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/build_templates/macsec.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Description=MACsec container
Requires=swss.service
After=swss.service syncd.service
BindsTo=sonic.target
After=sonic.target
StartLimitIntervalSec=1200
StartLimitBurst=3

Expand All @@ -14,4 +16,4 @@ Restart=always
RestartSec=30

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

0 comments on commit 8f883fe

Please sign in to comment.