Skip to content

Commit

Permalink
Merge branch 'master' into pr/2019
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin committed Nov 22, 2022
2 parents e47b592 + 7acd496 commit e57192f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions hugegraph-dist/src/assembly/static/bin/hugegraph
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@
### END INIT INFO

# Variables
# it requires user to set a fixed abs path manually
INSTALL_DIR=
SERVER_PORT=

${INSTALL_DIR:?"Please set variables 'INSTALL_DIR'"}
${SERVER_PORT:?"Please set variables 'SERVER_PORT'"}

BIN_DIR=$INSTALL_DIR/bin
SERVER_URL="http://localhost:${SERVER_PORT}"
DETECT_URL="$SERVER_URL/versions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.util.concurrent.CompletableFuture;

import org.apache.logging.log4j.LogManager;
import org.apache.tinkerpop.gremlin.server.GremlinServer;
import org.slf4j.Logger;

Expand Down Expand Up @@ -139,6 +140,7 @@ public static void main(String[] args) throws Exception {
server.stop();
LOG.info("HugeGraphServer stopped");

LogManager.shutdown();
serverStopped.complete(null);
}, "hugegraph-server-shutdown"));
// Wait for server-shutdown and server-stopped
Expand Down
4 changes: 2 additions & 2 deletions hugegraph-style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
-->
<code_scheme name="hugegraph-style" version="173">
<option name="LINE_SEPARATOR" value="&#xA;" />
<option name="RIGHT_MARGIN" value="80" />
<option name="RIGHT_MARGIN" value="100" />
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
<option name="SOFT_MARGINS" value="80" />
<option name="SOFT_MARGINS" value="100" />
<JavaCodeStyleSettings>
<option name="ANNOTATION_PARAMETER_WRAP" value="1" />
<option name="ALIGN_MULTILINE_ANNOTATION_PARAMETERS" value="true" />
Expand Down

0 comments on commit e57192f

Please sign in to comment.