Skip to content
Snippets Groups Projects
Commit 5a201bbc authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Daemon `webstart` and `webrestart` commands are back

parent 2192abf7
No related branches found
No related tags found
No related merge requests found
......@@ -38,13 +38,26 @@ switch (process.argv[2]) {
});
break;
case "webstart":
daemon = getDaemon('webstart');
start(daemon);
break;
case "webrestart":
daemon = getDaemon('webstart');
daemon.stop(function(err) {
err && console.error(err);
start(daemon);
});
break;
case "logs":
console.log(directory.INSTANCE_HOMELOG_FILE);
process.exit(0);
break;
default:
console.log("Usage: [start|stop|restart]");
console.log("Usage: [start|stop|restart|webstart|webrestart]");
}
function getDaemon(overrideCommand) {
......
......@@ -45,7 +45,7 @@ duniter() {
# DUNITER DAEMON MANAGEMENT
#---------------------------------
reset|start|stop|restart)
reset|start|stop|restart|webstart|webrestart)
$NODE "$DUNITER_DIR/bin/daemon" $*
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment