github.com/mattyr/nomad@v0.3.3-0.20160919021406-3485a065154a/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