0.0.1 • Published 6 years ago
proc-restart v0.0.1
proc-restart
Restart process without having process manager constantly running
Quickstart
Install package:
npm install proc-restart
Require inside of your script and call it when you want to restart it:
const restart = require('proc-restart')
process.on('uncaughtException', (err) => {
console.error('Error occured:', err)
restart()
})
License
MIT © Konstantin Azizov
0.0.1
6 years ago