2018-09-24 18:35:01 -05:00
|
|
|
[Unit]
|
|
|
|
Description=syncd service
|
|
|
|
Requires=database.service updategraph.service
|
|
|
|
{% if sonic_asic_platform == 'broadcom' %}
|
2019-01-25 02:46:09 -06:00
|
|
|
Requires=opennsl-modules.service
|
2018-09-24 18:35:01 -05:00
|
|
|
{% elif sonic_asic_platform == 'nephos' %}
|
2019-01-25 02:46:09 -06:00
|
|
|
Requires=nps-modules-4.9.0-8-2-amd64.service
|
2018-09-24 18:35:01 -05:00
|
|
|
{% endif %}
|
|
|
|
After=database.service updategraph.service
|
|
|
|
After=interfaces-config.service
|
|
|
|
{% if sonic_asic_platform == 'broadcom' %}
|
2019-01-25 02:46:09 -06:00
|
|
|
After=opennsl-modules.service
|
2018-09-24 18:35:01 -05:00
|
|
|
{% elif sonic_asic_platform == 'nephos' %}
|
2019-01-25 02:46:09 -06:00
|
|
|
After=nps-modules-4.9.0-8-2-amd64.service
|
2018-09-24 18:35:01 -05:00
|
|
|
{% endif %}
|
2019-03-02 17:28:34 -06:00
|
|
|
After=swss.service
|
2018-12-03 18:01:44 -06:00
|
|
|
Before=ntp-config.service
|
2018-09-24 18:35:01 -05:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=root
|
|
|
|
Environment=sonic_asic_platform={{ sonic_asic_platform }}
|
2019-03-02 17:28:34 -06:00
|
|
|
ExecStartPre=/usr/local/bin/syncd.sh start
|
2019-03-08 12:59:41 -06:00
|
|
|
ExecStart=/usr/local/bin/syncd.sh wait
|
2018-09-24 18:35:01 -05:00
|
|
|
ExecStop=/usr/local/bin/syncd.sh stop
|
2019-04-24 09:51:26 -05:00
|
|
|
{% if sonic_asic_platform == 'mellanox' %}
|
|
|
|
TimeoutStartSec=150
|
|
|
|
{% endif %}
|
2018-09-24 18:35:01 -05:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|