Added 5min timeout to wait for service to stop

This commit is contained in:
Jakub Matys 2018-09-06 11:45:13 +02:00
parent d50198cbff
commit 78300b998e
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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