34ea91349c
* Single image * Fix review comments * Update syncd service. Add HW mgmt to Mellanox single image. * Add single image template for Broadcom platform. SKU should be provided during configure: make configure PLATFORM=broadcom SKU=Force10-S6000 * Add single image template for Cavium platform. SKU should be provided during configure: make configure PLATFORM=cavium SKU=AS7512 * Add description to sonic_debian_extension.j2 file.
30 lines
810 B
Django/Jinja
30 lines
810 B
Django/Jinja
[Unit]
|
|
Description=syncd container
|
|
Requires=database.service
|
|
After=database.service
|
|
|
|
[Service]
|
|
User=root
|
|
{% if sonic_hwsku == 'ACS-MSN2700' %}
|
|
ExecStartPre=/etc/init.d/sxdkernel start
|
|
ExecStartPre=/usr/bin/mst start
|
|
ExecStartPre=/etc/mlnx/msn2700 start
|
|
{% elif sonic_hwsku == 'AS7512' %}
|
|
ExecStartPre=-/etc/init.d/xpnet.sh stop
|
|
ExecStartPre=/etc/init.d/xpnet.sh start
|
|
{% endif %}
|
|
ExecStart=/usr/bin/{{docker_container_name}}.sh start
|
|
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
|
|
{% if sonic_hwsku == 'ACS-MSN2700' %}
|
|
ExecStopPost=/etc/mlnx/msn2700 stop
|
|
ExecStopPost=/etc/init.d/sxdkernel stop
|
|
ExecStopPost=/usr/bin/mst stop
|
|
{% elif sonic_hwsku == 'AS7512' %}
|
|
ExecStopPost=/etc/init.d/xpnet.sh stop
|
|
ExecStopPost=/etc/init.d/xpnet.sh start
|
|
{% endif %}
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|