Skip to content

Instantly share code, notes, and snippets.

View mykz's full-sized avatar

Mike Bailey mykz

View GitHub Profile
@mykz
mykz / auto-restart-nodejs-process
Created August 7, 2022 06:21 — forked from luozhihua/auto-restart-nodejs-process
Auto restart nodejs process when program exit
var child_process = require('child_process');
start();
function start(nodefile) {
if (typeof start !== 'string') {
console.log('Has none file. like this: start("app.js")');
}
console.log('Master process is running.');