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
Branches
Tags
No related merge requests found
...@@ -38,13 +38,26 @@ switch (process.argv[2]) { ...@@ -38,13 +38,26 @@ switch (process.argv[2]) {
}); });
break; 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": case "logs":
console.log(directory.INSTANCE_HOMELOG_FILE); console.log(directory.INSTANCE_HOMELOG_FILE);
process.exit(0); process.exit(0);
break; break;
default: default:
console.log("Usage: [start|stop|restart]"); console.log("Usage: [start|stop|restart|webstart|webrestart]");
} }
function getDaemon(overrideCommand) { function getDaemon(overrideCommand) {
......
...@@ -45,7 +45,7 @@ duniter() { ...@@ -45,7 +45,7 @@ duniter() {
# DUNITER DAEMON MANAGEMENT # DUNITER DAEMON MANAGEMENT
#--------------------------------- #---------------------------------
reset|start|stop|restart) reset|start|stop|restart|webstart|webrestart)
$NODE "$DUNITER_DIR/bin/daemon" $* $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