fix coin install bugs
This commit is contained in:
parent
3e456246b0
commit
5cf4ee292a
3 changed files with 5 additions and 8 deletions
|
|
@ -63,7 +63,7 @@ function writeSupervisorConfig (coinRec, cmd) {
|
|||
const blockchain = coinRec.code
|
||||
|
||||
const supervisorConfig = `[program:${blockchain}]
|
||||
command=${cmd}
|
||||
command=nice ${cmd}
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/log/supervisor/${blockchain}.err.log
|
||||
|
|
@ -99,6 +99,7 @@ function writeFile (path, content) {
|
|||
} catch (err) {
|
||||
if (err.code === 'EEXIST') {
|
||||
logger.info(`${path} exists, skipping.`)
|
||||
return
|
||||
}
|
||||
|
||||
throw err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue