2017-01-29 13:33:33 -06:00
|
|
|
[Unit]
|
2017-03-01 12:57:35 -06:00
|
|
|
Description=switch state service
|
2018-03-09 19:17:08 -06:00
|
|
|
Requires=database.service updategraph.service
|
2017-03-24 18:29:23 -05:00
|
|
|
{% if sonic_asic_platform == 'broadcom' %}
|
2018-08-16 10:56:56 -05:00
|
|
|
Requires=opennsl-modules-4.9.0-7-amd64.service
|
2017-12-22 12:04:29 -06:00
|
|
|
{% elif sonic_asic_platform == 'nephos' %}
|
2018-08-16 10:56:56 -05:00
|
|
|
Requires=nps-modules-4.9.0-7-amd64.service
|
2017-03-24 18:29:23 -05:00
|
|
|
{% endif %}
|
2018-03-09 19:17:08 -06:00
|
|
|
After=database.service updategraph.service
|
2017-09-12 16:13:27 -05:00
|
|
|
After=interfaces-config.service
|
2017-01-29 13:33:33 -06:00
|
|
|
|
|
|
|
[Service]
|
2017-03-01 19:05:13 -06:00
|
|
|
User=root
|
2018-08-22 15:02:32 -05:00
|
|
|
Environment=sonic_asic_platform={{ sonic_asic_platform }}
|
|
|
|
ExecStart=/usr/local/bin/swss.sh start
|
|
|
|
ExecStop=/usr/local/bin/swss.sh stop
|
2017-03-01 12:57:35 -06:00
|
|
|
|
2017-01-29 13:33:33 -06:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|