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