# systemd unit for a MANUAL Nomad install (GitHub releases route, README §1b). # The HashiCorp .deb ships an equivalent unit at /lib/systemd/system/nomad.service — # do NOT install this file if nomad was installed via apt. # # Target location: /etc/systemd/system/nomad.service [Unit] Description=Nomad Documentation=https://developer.hashicorp.com/nomad/docs Wants=network-online.target After=network-online.target [Service] # agent reads /etc/nomad.d/*.hcl (deploy/nomad/nomad.hcl copied there) ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d/ ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure LimitNOFILE=65536 # Runs as root on purpose: the docker driver needs the docker socket. [Install] WantedBy=multi-user.target