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

Fixing #425 Added `direct_start` command

parent 27d885b9
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,9 @@ duniter() { ...@@ -16,6 +16,9 @@ duniter() {
### Production mode ### Production mode
if [[ -d $DUNITER_DIR/node ]]; then if [[ -d $DUNITER_DIR/node ]]; then
NODE=$DUNITER_DIR/node/bin/node NODE=$DUNITER_DIR/node/bin/node
else
echo "Node.js is not embedded in this version of Duniter"
return
fi; fi;
else else
...@@ -40,6 +43,10 @@ duniter() { ...@@ -40,6 +43,10 @@ duniter() {
$NODE "$DUNITER_DIR/bin/daemon" $* $NODE "$DUNITER_DIR/bin/daemon" $*
;; ;;
direct_start)
$NODE "$DUNITER_DIR/bin/ucoind" start ${@:2}
;;
logs) logs)
LOGS_FILE=`$NODE "$DUNITER_DIR/bin/daemon" $*` LOGS_FILE=`$NODE "$DUNITER_DIR/bin/daemon" $*`
tail -f -n 500 "$LOGS_FILE" tail -f -n 500 "$LOGS_FILE"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment