github.com/obeyler/nomad@v0.11.8/demo/digitalocean/packer/nomad/upstart.nomad (about)

     1  description "Nomad by HashiCorp"
     2  
     3  start on runlevel [2345]
     4  stop on runlevel [!2345]
     5  
     6  respawn
     7  
     8  script
     9      CONFIG_DIR=/usr/local/etc/nomad
    10      mkdir -p $CONFIG_DIR
    11      exec /usr/local/bin/nomad agent -config $CONFIG_DIR >> /var/log/nomad.log 2>&1
    12  end script