Browse Source

kmd rpcbind -> rpcport

pkg_automation_electrum
pbca26 7 years ago
parent
commit
4fc45ee294
  1. 24
      routes/shepherd/daemonControl.js

24
routes/shepherd/daemonControl.js

@ -655,27 +655,29 @@ module.exports = (shepherd) => {
});
}
const rpcbind = () => {
const rpcport = () => {
return new Promise((resolve, reject) => {
const result = 'checking rpcbind...';
const result = 'checking rpcport...';
if (status[0].hasOwnProperty('rpcbind')) {
shepherd.log('rpcbind: OK');
shepherd.writeLog('rpcbind: OK');
if (flock === 'komodod') {
if (status[0].hasOwnProperty('rpcport')) {
shepherd.log('rpcport: OK');
shepherd.writeLog('rpcport: OK');
} else {
shepherd.log('rpcbind: NOT FOUND');
shepherd.writeLog('rpcbind: NOT FOUND');
shepherd.log('rpcport: NOT FOUND');
shepherd.writeLog('rpcport: NOT FOUND');
fs.appendFile(DaemonConfPath, '\nrpcbind=127.0.0.1', (err) => {
fs.appendFile(DaemonConfPath, '\rpcport=7771', (err) => {
if (err) {
shepherd.writeLog(`append daemon conf err: ${err}`);
shepherd.log(`append daemon conf err: ${err}`);
}
// throw err;
shepherd.log('rpcbind: ADDED');
shepherd.writeLog('rpcbind: ADDED');
shepherd.log('rpcport: ADDED');
shepherd.writeLog('rpcport: ADDED');
});
}
}
resolve(result);
});
@ -764,7 +766,7 @@ module.exports = (shepherd) => {
return rpcpass();
})
.then(server)
.then(rpcbind)
.then(rpcport)
.then(addnode);
});

Loading…
Cancel
Save