blob: 2a87c65063e73d7eb1de1e8ae8d36053dd55d011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
[Unit]
Description=Nomad Service
Documentation=https://www.nomadproject.io/docs/
Wants=network-online.target
After=network-online.target
[Service]
# TODO: Decrease privilege
ExecReload=/bin/kill -SIGHUP $MAINPID
ExecStart={{ nomad_bin_dir }}/nomad agent -config={{ nomad_config_dir }}
KillSignal=SIGTERM
LimitNOFILE=infinity
LimitNPROC=infinity
Restart=on-failure
RestartSec=1
User=root
Group=root
Environment="GOMAXPROCS=2"
[Install]
WantedBy=multi-user.target
|