2018-09-24 18:35:01 -05:00
|
|
|
[Unit]
|
|
|
|
Description=syncd service
|
|
|
|
Requires=database.service updategraph.service
|
|
|
|
{% if sonic_asic_platform == 'broadcom' %}
|
2018-12-11 06:17:17 -06:00
|
|
|
Requires=opennsl-modules-4.9.0-8-amd64.service
|
2018-09-24 18:35:01 -05:00
|
|
|
{% elif sonic_asic_platform == 'nephos' %}
|
2018-12-11 06:17:17 -06:00
|
|
|
Requires=nps-modules-4.9.0-8-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' %}
|
2018-12-11 06:17:17 -06:00
|
|
|
After=opennsl-modules-4.9.0-8-amd64.service
|
2018-09-24 18:35:01 -05:00
|
|
|
{% elif sonic_asic_platform == 'nephos' %}
|
2018-12-11 06:17:17 -06:00
|
|
|
After=nps-modules-4.9.0-8-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
|
|
|
|
ExecStart=/usr/local/bin/syncd.sh attach
|
2018-09-24 18:35:01 -05:00
|
|
|
ExecStop=/usr/local/bin/syncd.sh stop
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|