lib/actions.js
function (callback) {
    var cozyLight = require('./cozy-light');
    logger.info('Restarting...');

    actions.stop(function(){
      configHelpers.loadConfigFile();
      cozyLight.routes = {};

      logger.info('Starting all apps...');
      pluginHelpers.loadAll(this.program, function() {
        actions.start(this.program, function(){
          logger.info('...Cozy Light was properly restarted.');
          nodeHelpers.invoke(callback);
          actionsEvent.emit('restarted');
        });
      });
    });
  }
function (callback) {
    var cozyLight = require('./cozy-light');
    logger.info('Restarting...');

    actions.stop(function(){
      configHelpers.loadConfigFile();
      cozyLight.routes = {};

      logger.info('Starting all apps...');
      pluginHelpers.loadAll(this.program, function() {
        actions.start(this.program, function(){
          logger.info('...Cozy Light was properly restarted.');
          nodeHelpers.invoke(callback);
          actionsEvent.emit('restarted');
        });
      });
    });
  }
Stops application server, its apps, and its plugins,
reload everyone, then restart everyone