open-nomad/demo/digitalocean/packer/upstart.nomad
2015-09-23 13:48:45 -07:00

13 lines
250 B
HCL

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/local/bin/nomad -config $CONFIG_DIR >> /var/log/nomad.log 2>&1
end script