Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hostcfgd] Configure service auto-restart in hostcfgd. #5744

Merged
merged 23 commits into from
Jun 29, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1d2b20a
[hostcfgd] Configure service auto-restart in hostcfgd.
stepanblyschak Oct 26, 2020
6f47365
add feature config parsing test
stepanblyschak Nov 16, 2020
bfbcfa8
[supervisor-proc-exit-listener] remove unused import
stepanblyschak Nov 16, 2020
7e6e8f5
Merge branch 'master' of github.com:azure/sonic-buildimage into auto_…
stepanblyschak Dec 9, 2020
6e91c39
Merge branch 'master' of github.com:azure/sonic-buildimage into auto_…
stepanblyschak Jan 5, 2021
285f7a3
[hostcfgd] enhance run_cmd with ability to raise exception and reuse …
stepanblyschak Jan 20, 2021
79c2866
Merge branch 'master' of github.com:azure/sonic-buildimage into auto_…
stepanblyschak Jan 27, 2021
9a82a82
[hostcfgd] remove unneded feature_handle method
stepanblyschak Jan 30, 2021
e12a4f8
Merge branch 'master' of github.com:azure/sonic-buildimage into auto_…
stepanblyschak Mar 16, 2021
ce19fc0
remove duplicated test
stepanblyschak Mar 16, 2021
1bb4abe
Merge branch 'master' of github.com:azure/sonic-buildimage into auto_…
stepanblyschak Mar 17, 2021
5dad36e
[hostcfgd] support dynamically added features
stepanblyschak Mar 18, 2021
35c556c
Merge branch 'master' of github.com:azure/sonic-buildimage into auto_…
stepanblyschak Mar 19, 2021
dedfeda
Merge branch 'master' of github.com:azure/sonic-buildimage into auto_…
stepanblyschak Mar 25, 2021
f19542a
[hostcfgd] change service_name -> feature_name
stepanblyschak Mar 29, 2021
2380a83
Merge branch 'master' into auto_restart_cfg
stepanblyschak Apr 12, 2021
d033a8d
Merge branch 'master' into auto_restart_cfg
stepanblyschak Apr 28, 2021
63abd6c
bring back missing code
stepanblyschak Apr 28, 2021
12ca5ce
Merge branch 'master' of github.com:azure/sonic-buildimage into auto_…
stepanblyschak May 5, 2021
f9c53f1
fix review comments
stepanblyschak May 5, 2021
774781d
fix feature states transitions
stepanblyschak May 21, 2021
1c6472c
fix condition
stepanblyschak May 22, 2021
32df167
rename feature -> feature_handler
stepanblyschak Jun 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion files/build_templates/dhcp_relay.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ 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
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/nat.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ 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
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/per_namespace/bgp.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ ExecStartPre=/usr/local/bin/{{docker_container_name}}.sh start{% if multi_instan
ExecStart=/usr/local/bin/{{docker_container_name}}.sh wait{% if multi_instance == 'true' %} %i{% endif %}
ExecStop=/usr/local/bin/{{docker_container_name}}.sh stop{% if multi_instance == 'true' %} %i{% endif %}

Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/per_namespace/database.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ User=root
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start{% if multi_instance == 'true' %} %i{% endif %}
ExecStart=/usr/bin/{{docker_container_name}}.sh wait{% if multi_instance == 'true' %} %i{% endif %}
ExecStop=/usr/bin/{{docker_container_name}}.sh stop{% if multi_instance == 'true' %} %i{% endif %}
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/per_namespace/lldp.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ User={{ sonicadmin_user }}
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start{% if multi_instance == 'true' %} %i{% endif %}
ExecStart=/usr/bin/{{docker_container_name}}.sh wait{% if multi_instance == 'true' %} %i{% endif %}
ExecStop=/usr/bin/{{docker_container_name}}.sh stop{% if multi_instance == 'true' %} %i{% endif %}
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/per_namespace/swss.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Environment=sonic_asic_platform={{ sonic_asic_platform }}
ExecStartPre=/usr/local/bin/swss.sh start{% if multi_instance == 'true' %} %i{% endif %}
ExecStart=/usr/local/bin/swss.sh wait{% if multi_instance == 'true' %} %i{% endif %}
ExecStop=/usr/local/bin/swss.sh stop{% if multi_instance == 'true' %} %i{% endif %}
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/per_namespace/teamd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ User={{ sonicadmin_user }}
ExecStartPre=/usr/local/bin/{{docker_container_name}}.sh start{% if multi_instance == 'true' %} %i{% endif %}
ExecStart=/usr/local/bin/{{docker_container_name}}.sh wait{% if multi_instance == 'true' %} %i{% endif %}
ExecStop=/usr/local/bin/{{docker_container_name}}.sh stop{% if multi_instance == 'true' %} %i{% endif %}
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/pmon.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ 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
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/radv.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ User={{ sonicadmin_user }}
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
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/restapi.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ 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
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/sflow.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ 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
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/share_image/database.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ User=root
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start chassisdb
ExecStart=/usr/bin/{{docker_container_name}}.sh wait chassisdb
ExecStop=/usr/bin/{{docker_container_name}}.sh stop chassisdb
Restart=always
RestartSec=30

[Install]
Expand Down
1 change: 0 additions & 1 deletion files/build_templates/snmp.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ StartLimitBurst=3
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
ExecStart=/usr/bin/{{docker_container_name}}.sh wait
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
Restart=always
RestartSec=30

1 change: 0 additions & 1 deletion files/build_templates/telemetry.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ 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
Restart=always
RestartSec=30

Loading