Retry the supervisor restart.
Retry the supervisor restart.

This is needed because there is a race condition between the stop and
start of supervisor.  The stop will not wait for all child process to
have shutdown by design because this behavior is needed for lms workers.

This means that when we try to do a stop and start together, and the first process
has not fully stopped, we get a failure in the startup of the second process.

There is no obvious way to deal with this in systemd so dealing with it here
instead.

edx/configuration,mitodl/configuration,stvstnfrd/configuration,Stanford-Online/configuration,Stanford-Online/configuration,EDUlib/configuration,hastexo/edx-configuration,edx/configuration,mitodl/configuration,hastexo/edx-configuration,EDUlib/configuration,stvstnfrd/configuration,arbrandes/edx-configuration,appsembler/configuration,proversity-org/configuration,rue89-tech/configuration,mitodl/configuration,hks-epod/configuration,hks-epod/configuration,rue89-tech/configuration,stvstnfrd/configuration,arbrandes/edx-configuration,hks-epod/configuration,michaelsteiner19/open-edx-configuration,gsehub/configuration,appsembler/configuration,hks-epod/configuration,rue89-tech/configuration,arbrandes/edx-configuration,michaelsteiner19/open-edx-configuration,arbrandes/edx-configuration,hastexo/edx-configuration,proversity-org/configuration,hks-epod/configuration,proversity-org/configuration,appsembler/configuration,EDUlib/configuration,EDUlib/configuration,gsehub/configuration,proversity-org/configuration,stvstnfrd/configuration,hastexo/edx-configuration,edx/configuration,Stanford-Online/configuration,Stanford-Online/configuration,hastexo/edx-configuration,proversity-org/configuration,rue89-tech/configuration,mitodl/configuration,michaelsteiner19/open-edx-configuration,arbrandes/edx-configuration,gsehub/configuration,edx/configuration,EDUlib/configuration,appsembler/configuration,rue89-tech/configuration,stvstnfrd/configuration,Stanford-Online/configuration,michaelsteiner19/open-edx-configuration,gsehub/configuration,gsehub/configuration