When daemon reloaded, it disturbs docker. Wait for docker
when doing systemctl daemon reload. Do that as well to fix
the network_plugin/weave : reload weaveproxy.
Also don't do a 10 sec sleep when restarting docker, instead
rely on the waiter which checks docker via CLI.
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Creating the unit using default settings early on
and then changing it during network_plugin section
leads to too many docker restarts and duplicated code.
Reversed Wants= dependence on docker.service so it does not
restart docker when reloading systemd
Consolidated all docker restart handlers.