Skip to content

Instantly share code, notes, and snippets.

@RafPe
Created February 11, 2016 08:38
Show Gist options
  • Select an option

  • Save RafPe/bdf27335a15b5bd671de to your computer and use it in GitHub Desktop.

Select an option

Save RafPe/bdf27335a15b5bd671de to your computer and use it in GitHub Desktop.
Nomad Hashicorp upstart script
description "Nomad by HashiCorp"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
script
# CONFIG_DIR=/usr/local/etc/nomad
# mkdir -p $CONFIG_DIR
exec /usr/bin/nomad agent -server -bootstrap-expect=1 -data-dir=/tmp/nomad >> /var/log/nomad.log 2>&1
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment