This commit is contained in:
barisusakli
2014-09-06 22:28:09 -04:00
parent b7ee875b12
commit cc3786e22d
2 changed files with 13 additions and 12 deletions

View File

@@ -40,6 +40,7 @@ SocketAdmin.before = function(socket, method, next) {
};
SocketAdmin.reload = function(socket, data, callback) {
events.logWithUser(socket.uid, ' is reloading NodeBB');
if (cluster.isWorker) {
process.send({
action: 'reload'
@@ -50,6 +51,7 @@ SocketAdmin.reload = function(socket, data, callback) {
};
SocketAdmin.restart = function(socket, data, callback) {
events.logWithUser(socket.uid, ' is restarting NodeBB');
meta.restart();
};