v1.18.x
psychobunny 9 years ago
parent a3530340a9
commit 92810527ea

@ -72,8 +72,9 @@ switch(process.argv[2]) {
getRunningPid(function(err, pid) { getRunningPid(function(err, pid) {
if (!err) { if (!err) {
process.kill(pid, 'SIGHUP'); process.kill(pid, 'SIGHUP');
process.stdout.write('\nRestarting NodeBB\n'.bold);
} else { } else {
process.stdout.write('NodeBB could not be restarted, as a running instance could not be found.'); process.stdout.write('NodeBB could not be restarted, as a running instance could not be found.\n');
} }
}); });
break; break;
@ -83,7 +84,7 @@ switch(process.argv[2]) {
if (!err) { if (!err) {
process.kill(pid, 'SIGUSR2'); process.kill(pid, 'SIGUSR2');
} else { } else {
process.stdout.write('NodeBB could not be reloaded, as a running instance could not be found.'); process.stdout.write('NodeBB could not be reloaded, as a running instance could not be found.\n');
} }
}); });
break; break;

Loading…
Cancel
Save