diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-08-03 17:08:19 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-03 17:08:19 +0800 |
commit | faf0e06ed8ffbf3a938312724c8cf722b1132d15 (patch) | |
tree | 86b3e6af68c6422ddce99f4547930c8bdf7d498e /cmd/puppeth/module_faucet.go | |
parent | 70176cda0eedbb4ec9cde867e8f6cde63efa5a12 (diff) | |
download | dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.tar.gz dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.tar.zst dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.zip |
cmd/puppeth: graceful shutdown on redeploys
Diffstat (limited to 'cmd/puppeth/module_faucet.go')
-rw-r--r-- | cmd/puppeth/module_faucet.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/puppeth/module_faucet.go b/cmd/puppeth/module_faucet.go index 8365bf47d..06c9fc0f5 100644 --- a/cmd/puppeth/module_faucet.go +++ b/cmd/puppeth/module_faucet.go @@ -133,9 +133,9 @@ func deployFaucet(client *sshClient, network string, bootnodes []string, config // Build and deploy the faucet service if nocache { - return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s build --pull --no-cache && docker-compose -p %s up -d --force-recreate", workdir, network, network)) + return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s build --pull --no-cache && docker-compose -p %s up -d --force-recreate --timeout 60", workdir, network, network)) } - return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s up -d --build --force-recreate", workdir, network)) + return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s up -d --build --force-recreate --timeout 60", workdir, network)) } // faucetInfos is returned from a faucet status check to allow reporting various |