Skip to content

Commit

Permalink
[boot] Start ntp-config service after all Docker containers are start…
Browse files Browse the repository at this point in the history
…ed (#2303)
  • Loading branch information
jleveque authored and lguohan committed Dec 11, 2018
1 parent ad2812a commit 5479286
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions files/build_templates/bgp.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=BGP container
Requires=updategraph.service
After=updategraph.service
Before=ntp-config.service

[Service]
User={{ sonicadmin_user }}
Expand Down
1 change: 1 addition & 0 deletions files/build_templates/dhcp_relay.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=DHCP relay container
Requires=updategraph.service swss.service teamd.service
After=updategraph.service swss.service teamd.service
Before=ntp-config.service

[Service]
User={{ sonicadmin_user }}
Expand Down
1 change: 1 addition & 0 deletions files/build_templates/lldp.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=LLDP container
Requires=updategraph.service
After=updategraph.service
Before=ntp-config.service

[Service]
User={{ sonicadmin_user }}
Expand Down
1 change: 1 addition & 0 deletions files/build_templates/pmon.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=Platform monitor container
Requires=updategraph.service
After=updategraph.service
Before=ntp-config.service

[Service]
User={{ sonicadmin_user }}
Expand Down
1 change: 1 addition & 0 deletions files/build_templates/radv.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=Router advertiser container
Requires=updategraph.service swss.service
After=updategraph.service swss.service
Before=ntp-config.service

[Service]
User={{ sonicadmin_user }}
Expand Down
1 change: 1 addition & 0 deletions files/build_templates/snmp.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=SNMP container
Requires=updategraph.service swss.service
After=updategraph.service swss.service
Before=ntp-config.service

[Service]
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
Expand Down
1 change: 1 addition & 0 deletions files/build_templates/swss.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ After=opennsl-modules-3.16.0-6-amd64.service
{% elif sonic_asic_platform == 'nephos' %}
After=nps-modules-3.16.0-6-amd64.service
{% endif %}
Before=ntp-config.service

[Service]
User=root
Expand Down
1 change: 1 addition & 0 deletions files/build_templates/teamd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=TEAMD container
Requires=updategraph.service
After=updategraph.service
Before=ntp-config.service

[Service]
User={{ sonicadmin_user }}
Expand Down
1 change: 1 addition & 0 deletions files/build_templates/telemetry.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=Telemetry container
Requires=swss.service
After=swss.service
Before=ntp-config.service

[Service]
User={{ sonicadmin_user }}
Expand Down

0 comments on commit 5479286

Please sign in to comment.