This really is an overcomplicated hack to work around etcd bugs, haha. If your service starts reliably, you can get rid of this running atom, most of the synchronization points, the while loop, teardown, and the sleeps.