From 78300b998e2403bfe2eb1e8cbb76a2c7744142bc Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Thu, 6 Sep 2018 11:45:13 +0200 Subject: [PATCH] Added 5min timeout to wait for service to stop --- build/templates/backend/debian/service | 1 + build/templates/blockbook/debian/service | 1 + 2 files changed, 2 insertions(+) diff --git a/build/templates/backend/debian/service b/build/templates/backend/debian/service index b494c22c..54473b3b 100644 --- a/build/templates/backend/debian/service +++ b/build/templates/backend/debian/service @@ -7,6 +7,7 @@ After=network.target ExecStart={{template "Backend.ExecCommandTemplate" .}} User={{.Backend.SystemUser}} Restart=on-failure +TimeoutStopSec=300 WorkingDirectory={{.Env.BackendInstallPath}}/{{.Coin.Alias}} {{if eq .Backend.ServiceType "forking" -}} Type=forking diff --git a/build/templates/blockbook/debian/service b/build/templates/blockbook/debian/service index 5bf291bc..e3541215 100644 --- a/build/templates/blockbook/debian/service +++ b/build/templates/blockbook/debian/service @@ -9,6 +9,7 @@ ExecStart={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin/blockbook -blockchai User={{.Blockbook.SystemUser}} Type=simple Restart=on-failure +TimeoutStopSec=300 WorkingDirectory={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}} # Resource limits