Skip to content

Commit 739e4d7

Browse files
[timer.unit.j2] use wanted-by in timer unit (#2546)
Signed-off-by: Stepan Blyschak <[email protected]> Signed-off-by: Stepan Blyschak <[email protected]>
1 parent 748540c commit 739e4d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sonic-utilities-data/templates/timer.unit.j2

+4
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ Unit={{ manifest.service.name }}{% if multi_instance %}@%i{% endif %}.service
1313

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

0 commit comments

Comments
 (0)