Skip to content

Commit

Permalink
[timer.unit.j2] use wanted-by in timer unit (sonic-net#2546)
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
  • Loading branch information
stepanblyschak authored Dec 19, 2022
1 parent 748540c commit 739e4d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sonic-utilities-data/templates/timer.unit.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ Unit={{ manifest.service.name }}{% if multi_instance %}@%i{% endif %}.service

[Install]
WantedBy=timers.target sonic.target sonic-delayed.target
{%- for service in manifest.service["wanted-by"] %}
WantedBy={{ service }}{% if multi_instance and service in multi_instance_services %}@%i{% endif %}.service
{%- endfor %}

0 comments on commit 739e4d7

Please sign in to comment.