npm.io
0.0.1 • Published 8 years ago

proc-restart

Licence
MIT
Version
0.0.1
Deps
0
Vulns
0
Weekly
0

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

Keywords