github.com/hhrutter/nomad@v0.6.0-rc2.0.20170723054333-80c4b03f0705/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