sonic-buildimage/platform
yozhao101 4fa81b4f8d
[dockers] Update critical_processes file syntax (#4831)
**- Why I did it**
Initially, the critical_processes file contains either the name of critical process or the name of group.
For example, the critical_processes file in the dhcp_relay container contains a single group name
`isc-dhcp-relay`. When testing the autorestart feature of each container, we need get all the critical
processes and test whether a  container can be restarted correctly if one of its critical processes is
killed. However, it will be difficult to differentiate whether the names in the critical_processes file are
the critical processes or group names. At the same time, changing the syntax in this file will separate the individual process from the groups and also makes it clear to the user.

Right now the critical_processes file contains two different kind of entries. One is "program:xxx" which indicates a critical process. Another is "group:xxx" which indicates a group of critical processes
managed by supervisord using the name "xxx". At the same time, I also updated the logic to
parse the file critical_processes in supervisor-proc-event-listener script.

**- How to verify it**
We can first enable the autorestart feature of a specified container for example `dhcp_relay` by running the comman `sudo config container feature autorestart dhcp_relay enabled` on DUT. Then we can select a critical process from the command `docker top dhcp_relay` and use the command `sudo kill -SIGKILL <pid>` to kill that critical process. Final step is to check whether the container is restarted correctly or not.
2020-06-25 21:18:21 -07:00
..
barefoot [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
broadcom [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
cavium [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
centec [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
generic [dockers] Rename 'docker-snmp-sv2' to 'docker-snmp' (#4699) 2020-06-11 16:04:23 -07:00
innovium [kerne]: kernel update from 4.19.0-6 to 4.19.0-6-2 (#4711) 2020-06-21 06:41:23 -07:00
marvell [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
marvell-arm64 [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
marvell-armhf [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
mellanox [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
nephos [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
p4 [dvs] Install libteamdctl runtime dependency in VS docker (#4837) 2020-06-24 14:07:22 -07:00
template [docker-syncd-vs]: Convert syncd-vs docker to buster (#4726) 2020-06-09 09:07:25 -07:00
vs [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00