Fix host service for 202305 branch (#17781)

Why I did it
When we disable telemetry.service, sonic-hostservice will not start. And root cause is sonic-hostservice is only wanted by telemetry.service.

Work item tracking
Microsoft ADO (number only):
How I did it
Add dependency for gnmi.service.

How to verify it
Disable telemetry.service and build new image, and then check sonic-hostservice with new image.
This commit is contained in:
ganglv 2024-01-18 20:07:40 +08:00 committed by GitHub
parent b99c46e3f8
commit d81780baa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,5 +12,5 @@ RestartSec=10
TimeoutStopSec=3 TimeoutStopSec=3
[Install] [Install]
WantedBy=mgmt-framework.service telemetry.service WantedBy=mgmt-framework.service telemetry.service gnmi.service