Infra: Ansible Nomad II
[csit.git] / resources / tools / testbed-setup / ansible / roles / nomad / templates / nomad_systemd.service.j2
1 [Unit]
2 Description=Nomad Service
3 Documentation=https://www.nomadproject.io/docs/index.html
4 Wants=network.target
5 After=nomad.service
6
7 [Service]
8 # TODO: Decrease privilege
9 User=root
10 Group=root
11 Environment="GOMAXPROCS=2"
12 ExecStart={{ nomad_bin_dir }}/nomad agent -config={{ nomad_config_dir }}
13 ExecReload=/bin/kill -9 $MAINPID
14 KillSignal=SIGTERM
15 Restart=on-failure
16 RestartSec=1
17
18 [Install]
19 WantedBy=default.target