78977ddbce
Backporting #13969 Why I did it Implementing code changes for sonic-net/SONiC#1203 Work item tracking Microsoft ADO (number only): How I did it Removed the timers and delayed target since the delayed services would start based on event driven approach. Cleared port table during config reload and cold reboot scenario. Modified yang model, init_cfg.json to change has_timer to delayed How to verify it Added UT to verify
17 lines
481 B
Django/Jinja
17 lines
481 B
Django/Jinja
[Unit]
|
|
Description=SNMP container
|
|
Requires=updategraph.service
|
|
Requisite=swss.service
|
|
After=updategraph.service swss.service syncd.service interfaces-config.service
|
|
BindsTo=sonic.target
|
|
After=sonic.target
|
|
Before=ntp-config.service
|
|
StartLimitIntervalSec=1200
|
|
StartLimitBurst=3
|
|
|
|
[Service]
|
|
ExecStartPre=/usr/local/bin/{{docker_container_name}}.sh start
|
|
ExecStart=/usr/local/bin/{{docker_container_name}}.sh wait
|
|
ExecStop=/usr/local/bin/{{docker_container_name}}.sh stop
|
|
RestartSec=30
|