Skip to content

Instantly share code, notes, and snippets.

@bketelsen
Created September 27, 2014 18:59
Show Gist options
  • Save bketelsen/912c2aad8df259eb0e7a to your computer and use it in GitHub Desktop.
Save bketelsen/912c2aad8df259eb0e7a to your computer and use it in GitHub Desktop.
- name: etcd-waiter.service
command: start
content: |
[Unit]
Wants=network-online.target
Wants=etcd.service
After=etcd.service
After=network-online.target
[Service]
ExecStart=/usr/bin/curl http://localhost:4001/v2/machines
Restart=on-failure
RestartSec=10
RemainAfterExit=true
Type=oneshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment