lib: Fix so it displays the restart message during restart
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
This commit is contained in:
parent
23f9173720
commit
b5359515b5
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ export default class ServiceCore {
|
|||
|
||||
async init(module = null) {
|
||||
this.db = await GetDB(this.config, this.log, this.dbfilename)
|
||||
this.core = new Core(this.db, this.util, this.log, () => {
|
||||
let err = new Error('Got request to restart')
|
||||
this.core = new Core(this.db, this.util, this.log, (msg) => {
|
||||
let err = new Error('Got request to restart' + (msg ? ': ' + msg : ''))
|
||||
this.log.fatal(err)
|
||||
process.exit(0)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue