From dc24c8b2501e39a9e392eb31edf06e3cea6c9097 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Mon, 22 May 2017 12:12:13 +0200 Subject: [PATCH] [TASK] init systemd restart after 5 seconds --- contrib/init/linux-systemd/yanic.service | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/init/linux-systemd/yanic.service b/contrib/init/linux-systemd/yanic.service index f17a43d..82e44a5 100644 --- a/contrib/init/linux-systemd/yanic.service +++ b/contrib/init/linux-systemd/yanic.service @@ -6,6 +6,7 @@ Type=simple User=yanic ExecStart=/opt/go/bin/yanic -config /etc/yanic.conf Restart=always +RestartSec=5s Environment=PATH=/usr/bin:/usr/local/bin [Install]