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' %}
|
2019-01-25 02:46:09 -06:00
|
|
|
Requires=opennsl-modules.service
|
2017-12-22 12:04:29 -06:00
|
|
|
{% elif sonic_asic_platform == 'nephos' %}
|
2019-01-25 02:46:09 -06:00
|
|
|
Requires=nps-modules-4.9.0-8-2-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
|
2018-12-03 18:01:44 -06:00
|
|
|
Before=ntp-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 }}
|
2019-03-02 17:28:34 -06:00
|
|
|
ExecStartPre=/usr/local/bin/swss.sh start
|
2019-03-08 12:59:41 -06:00
|
|
|
ExecStart=/usr/local/bin/swss.sh wait
|
2018-08-22 15:02:32 -05:00
|
|
|
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
|