DealDocumentScreening/deploy/nomad/nomad.service
febux c64f8ac3b7
Some checks are pending
ci / test (push) Waiting to run
Forgejo workflows were added. Nomad config was created.
2026-09-13 22:09:10 +03:00

22 lines
741 B
Desktop File

# 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