[boot] Refactor: All services which start Docker containers start before ntp-config service (#2335)
This commit is contained in:
parent
d608a83b3d
commit
298d2ad8f4
@ -2,6 +2,7 @@
|
||||
Description=BGP container
|
||||
Requires=updategraph.service
|
||||
After=updategraph.service
|
||||
Before=ntp-config.service
|
||||
|
||||
[Service]
|
||||
User={{ sonicadmin_user }}
|
||||
|
@ -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 }}
|
||||
|
@ -2,6 +2,7 @@
|
||||
Description=LLDP container
|
||||
Requires=updategraph.service
|
||||
After=updategraph.service
|
||||
Before=ntp-config.service
|
||||
|
||||
[Service]
|
||||
User={{ sonicadmin_user }}
|
||||
|
@ -2,6 +2,7 @@
|
||||
Description=Platform monitor container
|
||||
Requires=updategraph.service
|
||||
After=updategraph.service
|
||||
Before=ntp-config.service
|
||||
|
||||
[Service]
|
||||
User={{ sonicadmin_user }}
|
||||
|
@ -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 }}
|
||||
|
@ -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
|
||||
|
@ -8,6 +8,7 @@ Requires=nps-modules-4.9.0-7-amd64.service
|
||||
{% endif %}
|
||||
After=database.service updategraph.service
|
||||
After=interfaces-config.service
|
||||
Before=ntp-config.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
|
@ -13,6 +13,7 @@ After=opennsl-modules-4.9.0-7-amd64.service
|
||||
{% elif sonic_asic_platform == 'nephos' %}
|
||||
After=nps-modules-4.9.0-7-amd64.service
|
||||
{% endif %}
|
||||
Before=ntp-config.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
|
@ -2,6 +2,7 @@
|
||||
Description=TEAMD container
|
||||
Requires=updategraph.service
|
||||
After=updategraph.service
|
||||
Before=ntp-config.service
|
||||
|
||||
[Service]
|
||||
User={{ sonicadmin_user }}
|
||||
|
@ -2,6 +2,7 @@
|
||||
Description=Telemetry container
|
||||
Requires=swss.service
|
||||
After=swss.service
|
||||
Before=ntp-config.service
|
||||
|
||||
[Service]
|
||||
User={{ sonicadmin_user }}
|
||||
|
@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Description=Update NTP configuration
|
||||
Requires=updategraph.service
|
||||
After=updategraph.service bgp.service dhcp_relay.service lldp.service pmon.service radv.service snmp.service swss.service syncd.service teamd.service
|
||||
After=updategraph.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Reference in New Issue
Block a user