Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
child_process.exec('service nginx restart', function(err, stdout, stderr){
if (err) throw err;
if (stdout) console.log(stdout);
if (stderr) console.log(stderr);
process.env.HOME = config.subscriberPath;
forever.restartAll().on('error', function(err){
next(err);
});
console.log('CU ready.');
res.end();
});
});