fix: use supervisor reload instead of restart

fix: set blockchain process autorestart to unexpected

fix: use supervisor reload and update instead of restart

fix: stop restarting supervisor service

fix: set blockchain supervisor config autorestart
This commit is contained in:
Sérgio Salgado 2021-06-09 16:38:29 +01:00 committed by Josh Harvey
parent 552190d43e
commit 528f721bcd

View file

@ -56,7 +56,8 @@ function processCryptos (codes) {
const selectedCryptos = _.map(code => _.find(['code', code], cryptos), codes) const selectedCryptos = _.map(code => _.find(['code', code], cryptos), codes)
_.forEach(setupCrypto, selectedCryptos) _.forEach(setupCrypto, selectedCryptos)
common.es('sudo service supervisor restart') common.es('sudo supervisorctl reread')
common.es('sudo supervisorctl update')
const blockchainDir = coinUtils.blockchainDir() const blockchainDir = coinUtils.blockchainDir()
const backupDir = path.resolve(os.homedir(), 'backups') const backupDir = path.resolve(os.homedir(), 'backups')