2021-07-24 18:24:43 -05:00
|
|
|
[Unit]
|
|
|
|
Description=PDE container
|
|
|
|
{% if sonic_asic_platform == 'broadcom' %}
|
|
|
|
Requires=opennsl-modules.service
|
|
|
|
ConditionPathExists=!/usr/bin/swss.sh
|
|
|
|
{% endif %}
|
|
|
|
|
2024-03-14 15:12:26 -05:00
|
|
|
After=config-setup.service
|
2021-07-24 18:24:43 -05:00
|
|
|
{% if sonic_asic_platform == 'broadcom' %}
|
|
|
|
After=opennsl-modules.service
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
Before=
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User={{ sonicadmin_user }}
|
|
|
|
ExecStartPre=/usr/bin/{{ docker_container_name }}.sh start
|
|
|
|
ExecStart=/usr/bin/{{ docker_container_name }}.sh wait
|
|
|
|
ExecStop=/usr/bin/{{ docker_container_name }}.sh stop
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|