From 46690698a4b9eaa7326c739a938b79ea2ce9da7b Mon Sep 17 00:00:00 2001 From: M S Vishwanath Bhat Date: Wed, 1 Aug 2018 16:36:52 +0200 Subject: [PATCH] systemd unit - Restart on failure Signed-off-by: M S Vishwanath Bhat --- dist/systemd/nomad.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/systemd/nomad.service b/dist/systemd/nomad.service index 331d2f313..4e7a7b740 100644 --- a/dist/systemd/nomad.service +++ b/dist/systemd/nomad.service @@ -7,6 +7,8 @@ KillMode=process KillSignal=SIGINT ExecStart=/usr/bin/nomad agent -config /etc/nomad ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +RestartSec=30 LimitNOFILE=65536 [Install]