proc-restart

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i proc-restart

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • g07cha