aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/nomad/templates/nomad_systemd.service.j2
blob: 7652983417549838ec7d936ac5e08d52cca7a8fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Nomad Service
Documentation=https://www.nomadproject.io/docs/index.html
Wants=network.target
After=nomad.service

[Service]
# TODO: Decrease privilege
User=root
Group=root
Environment="GOMAXPROCS=2"
ExecStart={{ nomad_bin_dir }}/nomad agent -config={{ nomad_config_dir }}
ExecReload=/bin/kill -9 $MAINPID
KillSignal=SIGTERM
Restart=on-failure
RestartSec=1

[Install]
WantedBy=default.target