Push dev work to master #2
|
@ -65,8 +65,9 @@ intval.init = function () {
|
||||||
expiredInterval: 2 * 60 * 1000, // [NEW] every 2 minutes the process will clean-up the expired cache
|
expiredInterval: 2 * 60 * 1000, // [NEW] every 2 minutes the process will clean-up the expired cache
|
||||||
forgiveParseErrors: false // [NEW]
|
forgiveParseErrors: false // [NEW]
|
||||||
}).then(intval._restoreState).catch((err) => {
|
}).then(intval._restoreState).catch((err) => {
|
||||||
log.error('init', err)
|
log.warn('init', err)
|
||||||
return intval._setState()
|
intval._setState()
|
||||||
|
intval._declarePins()
|
||||||
})
|
})
|
||||||
|
|
||||||
process.on('SIGINT', intval._undeclarePins)
|
process.on('SIGINT', intval._undeclarePins)
|
||||||
|
|
Loading…
Reference in New Issue