[swss]: Enforce swss dependency with opennsl-modules (#434)
- This change ensures that when shuting down, opennsl-modules will not stop until swss stops. Otherwise it will cause kernel stack trace. Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
This commit is contained in:
parent
b010e23725
commit
6308420db9
@ -1,7 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=switch state service
|
Description=switch state service
|
||||||
Requires=database.service
|
Requires=database.service
|
||||||
|
{% if sonic_asic_platform == 'broadcom' %}
|
||||||
|
Requires=opennsl-modules-3.16.0-4-amd64.service
|
||||||
|
{% endif %}
|
||||||
After=database.service
|
After=database.service
|
||||||
|
{% if sonic_asic_platform == 'broadcom' %}
|
||||||
|
After=opennsl-modules-3.16.0-4-amd64.service
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=root
|
||||||
@ -36,6 +42,5 @@ ExecStopPost=/etc/init.d/xpnet.sh stop
|
|||||||
ExecStopPost=/etc/init.d/xpnet.sh start
|
ExecStopPost=/etc/init.d/xpnet.sh start
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Reference in New Issue
Block a user