From 37a6ba07e84e96cf503235c12e7b0ab8c76fdff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sk=C3=BDpala?= Date: Tue, 2 Apr 2024 13:22:04 +0200 Subject: [PATCH] Service: Restart on failure --- cobuild/010-service.d/hrochobot.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cobuild/010-service.d/hrochobot.service b/cobuild/010-service.d/hrochobot.service index 1bc6f40..dd7c362 100644 --- a/cobuild/010-service.d/hrochobot.service +++ b/cobuild/010-service.d/hrochobot.service @@ -9,6 +9,8 @@ ExecStart=/srv/hrochobot/bin/hrochobot Environment=HROCHOBOT_DATA=/data/hrochobot Environment=HROCHOBOT_ETC=/data/hrochobot Environment=HROCHOBOT_LOG=/data/log +Restart=on-failure +RestartSec=5min [Install] WantedBy=multi-user.target