def restarted(manager, containers, count, name):
 containers.refresh()
 for container in manager.get_differing_containers():
  manager.stop_containers([container])
  manager.remove_containers([container])
 containers.refresh()
 manager.restart_containers(containers.running)
 started(manager, containers, count, name)

def restarted ( manager , containers , count , name ) : containers . refresh ( ) for container in manager . get_differing_containers ( ) : manager . stop_containers ( [ container ] ) manager . remove_containers ( [ container ] ) containers . refresh ( ) manager . restart_containers ( containers . running ) started ( manager , containers , count , name )
require a service to be restarted .