Skip to content

Instantly share code, notes, and snippets.

@cybertk
Created October 30, 2014 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cybertk/77d9b96ad11bf2d97b72 to your computer and use it in GitHub Desktop.
Save cybertk/77d9b96ad11bf2d97b72 to your computer and use it in GitHub Desktop.
description "Flynn layer 0"
#start on (started libvirt-bin and started networking)
respawn
respawn limit 1000 60
script
IP_ADDR=$(/sbin/ifconfig eth1 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}')
env ETCD_DISCOVERY=https://discovery.etcd.io/e73ebc86a75276ab5954ba7a6447ec94
flynn-host daemon --manifest /etc/flynn/host-manifest.json --external $IP_ADDR --state /tmp/flynn-host-state.json
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment