Calculate which applications to start, restart and stop given the new information.