Skip to content

G07cha/proc-restart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Self restart for running node process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published