Skip to content

Commit

Permalink
[services] improve startup time by changing startup order (#3656)
Browse files Browse the repository at this point in the history
* [services] improve startup time by given precedence to critical services (syncd.service)

Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
stepanblyschak authored and lguohan committed Oct 31, 2019
1 parent 064689d commit 8dbe13c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion files/build_templates/dhcp_relay.service.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=DHCP relay container
Requires=updategraph.service swss.service teamd.service
After=updategraph.service swss.service teamd.service
After=updategraph.service swss.service syncd.service teamd.service
Before=ntp-config.service

[Service]
Expand Down
2 changes: 1 addition & 1 deletion files/build_templates/lldp.service.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=LLDP container
Requires=updategraph.service
After=updategraph.service
After=updategraph.service swss.service syncd.service
Before=ntp-config.service

[Service]
Expand Down
2 changes: 1 addition & 1 deletion files/build_templates/radv.service.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=Router advertiser container
Requires=updategraph.service
After=updategraph.service swss.service
After=updategraph.service swss.service syncd.service
Before=ntp-config.service
StartLimitIntervalSec=1200
StartLimitBurst=3
Expand Down
2 changes: 1 addition & 1 deletion files/build_templates/sflow.service.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=sFlow container
Requires=swss.service
After=swss.service
After=swss.service syncd.service
Before=ntp-config.service

[Service]
Expand Down
2 changes: 1 addition & 1 deletion files/build_templates/snmp.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=SNMP container
Requires=updategraph.service
Requisite=swss.service
After=updategraph.service swss.service
After=updategraph.service swss.service syncd.service
Before=ntp-config.service
StartLimitIntervalSec=1200
StartLimitBurst=3
Expand Down
2 changes: 1 addition & 1 deletion files/build_templates/telemetry.service.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=Telemetry container
Requires=database.service
After=database.service
After=database.service swss.service syncd.service
Before=ntp-config.service

[Service]
Expand Down

0 comments on commit 8dbe13c

Please sign in to comment.