mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 02:35:56 +02:00
* Start work on database & users
This commit is contained in:
parent
eab6da2b0a
commit
7a3e375f5d
7 changed files with 196 additions and 41 deletions
11
core/bbs.js
11
core/bbs.js
|
@ -6,6 +6,7 @@ var conf = require('./config.js');
|
|||
var modules = require('./modules.js');
|
||||
var logger = require('./logger.js');
|
||||
var miscUtil = require('./misc_util.js');
|
||||
var database = require('./database.js');
|
||||
|
||||
var iconv = require('iconv-lite');
|
||||
var paths = require('path');
|
||||
|
@ -49,10 +50,6 @@ exports.bbsMain = function() {
|
|||
|
||||
logger.init();
|
||||
|
||||
preServingInit();
|
||||
|
||||
startListening();
|
||||
|
||||
process.on('SIGINT', function onSigInt() {
|
||||
// :TODO: for any client in |clientConnections|, if 'ready', send a "Server Disconnecting" + semi-gracefull hangup
|
||||
// e.g. client.disconnectNow()
|
||||
|
@ -60,6 +57,12 @@ exports.bbsMain = function() {
|
|||
logger.log.info('Process interrupted, shutting down');
|
||||
process.exit();
|
||||
});
|
||||
|
||||
database.initializeDatabases();
|
||||
|
||||
preServingInit();
|
||||
|
||||
startListening();
|
||||
};
|
||||
|
||||
function parseArgs() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue