Skip to content

Commit

Permalink
[dockers] Default container autorestart feature to "enabled" for all …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
yozhao101 authored and abdosi committed Aug 9, 2020
1 parent c56ddf0 commit 517592a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/build_templates/init_cfg.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 517592a

Please sign in to comment.