[services] sflow service sets swss service as Requisite=, not Requires= (#3819)

The sflow service should not start unless the swss service is started. However, if this service is not started, the sflow service should not attempt to start them, instead it should simply fail to start. Using Requisite=, we will achieve this behavior, whereas using Requires= will cause the required service to be started.
This commit is contained in:
Joe LeVeque 2019-12-03 09:50:49 -08:00 committed by lguohan
parent d3e544e7ba
commit 100d67941a

View File

@ -1,6 +1,6 @@
[Unit]
Description=sFlow container
Requires=swss.service
Requisite=swss.service
After=swss.service syncd.service
Before=ntp-config.service
StartLimitIntervalSec=1200