This unit is provided by:
Options
-
[Install]
-
WantedBy=multi-user.target
-
-
[Service]
-
Environment="DAEMON_ARGS=agent -config /etc/nomad"
-
EnvironmentFile=-/etc/default/%p
-
ExecReload=/bin/kill -HUP $MAINPID
-
ExecStart=/usr/bin/nomad $DAEMON_ARGS
-
ExecStart=/usr/bin/nomad agent -config /etc/nomad.d
-
ExecStartPost=-/bin/sh -c 'for D in 9 8 7 6 5 4 3 2 1; do /usr/bin/nomad node drain -disable -self && break || sleep $D; done'
-
ExecStartPre=-/bin/rm -vf /var/lib/nomad/client/state.db
-
ExecStop=-/usr/bin/nomad node drain -enable -self -force -yes
-
KillMode=process
-
KillSignal=SIGINT
-
LimitNOFILE=65536
-
LimitNPROC=infinity
-
NoNewPrivileges
Introduced in systemd 239=yes -
OOMScoreAdjust=-1000
-
PrivateDevices
Introduced in systemd 209=yes -
PrivateTmp=no
-
ProtectKernelTunables
Introduced in systemd 232=no -
ProtectSystem
Introduced in systemd 214=full -
Restart=on-failure
-
RestartSec=2
-
TasksMax=infinity
-
TimeoutStopSec
Introduced in systemd 188=5m
-
-
[Unit]
-
After=network-online.target consul.service
-
After=network.target local-fs.target remote-fs.target consul.service io.podman.service
-
Description=Nomad
-
Documentation=https://nomadproject.io/docs/
-
Documentation=https://www.nomadproject.io/docs/
-
StartLimitBurst=3
-
StartLimitIntervalSec=6
-
Wants=local-fs.target remote-fs.target consul.service cni-dhcp.socket
-
Wants=network-online.target consul.service
-
Additionnal notes
Nothing here.