diff --git a/files/build_templates/init_cfg.json.j2 b/files/build_templates/init_cfg.json.j2 index 7a0a8d1588..90980fe069 100644 --- a/files/build_templates/init_cfg.json.j2 +++ b/files/build_templates/init_cfg.json.j2 @@ -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 %}