open-nomad/dist/systemd/nomad.service
Daniel Greene af4622ac44
set killmode/killsignal in systemd example
The default (control-group) kill mode in systemd will kill the associated executors, leading to a commonly seen behavior of nomad client restarts losing all current allocations.

setting the KillSignal to SIGINT seems to be a reasonable default, and allows things like leave_on_interrupt to function
2018-01-16 22:22:32 -08:00

14 lines
256 B
Desktop File

[Unit]
Description=Nomad
Documentation=https://nomadproject.io/docs/
[Service]
KillMode=process
KillSignal=SIGINT
ExecStart=/usr/bin/nomad agent -config /etc/nomad
ExecReload=/bin/kill -HUP $MAINPID
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target