restart handling and crash detection

This commit is contained in:
Julian Lam
2014-09-03 15:23:40 -04:00
parent c40355b816
commit de41896770
5 changed files with 61 additions and 27 deletions

View File

@@ -41,7 +41,7 @@ if(nconf.get('ssl')) {
emailer.registerApp(app);
notifications.init();
if (cluster.worker.id === 1) {
if (process.env.cluster_setup === 'true') {
user.startJobs();
}
@@ -50,7 +50,7 @@ if(nconf.get('ssl')) {
meta.js.minify(app.enabled('minification'));
meta.css.minify();
if (cluster.worker.id === 1) {
if (process.env.cluster_setup === 'true') {
meta.sounds.init();
}
});