Skip to content

Commit

Permalink
[services] sflow service sets swss service as Requisite=, not Require…
Browse files Browse the repository at this point in the history
…s= (#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.
  • Loading branch information
jleveque authored and lguohan committed Dec 3, 2019
1 parent d3e544e commit 100d679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/build_templates/sflow.service.j2
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 100d679

Please sign in to comment.