uptime / index.js
khoadang31's picture
first commit
39100fb
Raw
History Blame Contribute Delete
210 Bytes
const cp = require('child_process');
start = () => {
var child = cp.fork(__dirname + '/server.js');
child.on("close", () => {
console.log("Restarting...")
setTimeout(() => start(), 250)
});
};
start();