[dockers] Default container autorestart feature to "enabled" for all except database (#4853)
Set the default auto_restart state to "enabled" in init_cfg.json for all containers except database Signed-off-by: Yong Zhao <yozhao@microsoft.com>
This commit is contained in:
parent
de51b9e424
commit
83738fca2f
@ -28,7 +28,7 @@
|
||||
{%- for container in ["bgp", "database", "dhcp_relay", "lldp", "nat", "pmon", "radv", "restapi", "sflow",
|
||||
"snmp", "swss", "syncd", "teamd", "telemetry"] %}
|
||||
"{{container}}": {
|
||||
"auto_restart": "disabled",
|
||||
"auto_restart": "{% if container == "database" %}disabled{% else %}enabled{% endif %}",
|
||||
"high_mem_alert": "disabled"
|
||||
}{% if not loop.last %},{% endif -%}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user