services stop and start as hosts are added and removed

fixes zen-13093
It waits for a connection or a shutdown