Last active
September 20, 2022 01:52
-
-
Save juanluisbaptiste/1a57fb0246ad59c7caf0ef6523edfeb0 to your computer and use it in GitHub Desktop.
Nomad systemd service file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Nomad | |
Documentation=https://nomadproject.io/docs/ | |
Wants=network-online.target | |
After=network-online.target | |
StartLimitIntervalSec=10 | |
StartLimitBurst=3 | |
# If you are running Consul, please uncomment following Wants/After configs. | |
# Assuming your Consul service unit name is "consul" | |
#Wants=consul.service | |
#After=consul.service | |
[Service] | |
ExecReload=/bin/kill -HUP $MAINPID | |
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d | |
KillMode=process | |
KillSignal=SIGINT | |
LimitNOFILE=infinity | |
LimitNPROC=infinity | |
Restart=on-failure | |
RestartSec=2 | |
TasksMax=infinity | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment