
var paths    = require('../../conf/paths');
var buildnumber = require(paths.libdir + '/codebase/buildnumber');

var ModuleServer = require(paths.libdir + '/server/moduleserver');

var server = null;


function startServer (next) {

	server = new ModuleServer(next);

}

var app = {

	start: startServer,

	stop: function (next) {
		server.close(next)
	},
	restart: function (next) {
		server.close(next)
	},

	log: log
}
module.exports = app;

var paths        = require('../../conf/paths');
var ModuleServer = require(paths.libdir + '/server/moduleserver');

function Server () {}

Server.prototype.start = function start (next) {
	this.server = new ModuleServer(next);
}

Server.prototype.stop = function stop (next) {
	this.server.close(next)
}

Server.prototype.restart = function restart (next) {
	this.server.close(next)
}

module.exports = new Server();
clean up