[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:
parent
4864b8f990
commit
fd3d8c23b2
@ -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
|
||||
|
Reference in New Issue
Block a user