summaryrefslogtreecommitdiffstats
path: root/local-setup/src/main/docker/janusgraph/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'local-setup/src/main/docker/janusgraph/entrypoint.sh')
-rwxr-xr-xlocal-setup/src/main/docker/janusgraph/entrypoint.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/local-setup/src/main/docker/janusgraph/entrypoint.sh b/local-setup/src/main/docker/janusgraph/entrypoint.sh
deleted file mode 100755
index 8108866..0000000
--- a/local-setup/src/main/docker/janusgraph/entrypoint.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-# run short-living command and prevent docker from stopping
-
-JANUS_EXEC="janusgraph/bin/janusgraph.sh"
-
-onStart() {
- ${JANUS_EXEC} start
-}
-
-onStop() {
- ${JANUS_EXEC} stop
-}
-
-waitLoop() {
- tail -f /dev/null &
- wait $!
-}
-
-trap 'onStop; exit 0' SIGTERM SIGINT
-
-onStart || exit $?
-
-waitLoop \ No newline at end of file