[Unit] Description=Ejects Stale Nodes Requires=etcd2.service After=etcd2.service [Service] TimeoutStartSec=0 RestartSec=30 Restart=always ExecStart=/bin/sh -c 'etcdctl cluster-health | \ grep unreachable | \ cut -d' ' -f2 | \ xargs etcdctl member remove'