Code Review
/
aai
/
test-config.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8108866abda0c5ec2e3b0a7e18b1b6431acd2db3
[aai/test-config.git]
/
local-setup
/
src
/
main
/
docker
/
janusgraph
/
entrypoint.sh
1
#!/bin/bash
2
3
# run short-living command and prevent docker from stopping
4
5
JANUS_EXEC="janusgraph/bin/janusgraph.sh"
6
7
onStart() {
8
${JANUS_EXEC} start
9
}
10
11
onStop() {
12
${JANUS_EXEC} stop
13
}
14
15
waitLoop() {
16
tail -f /dev/null &
17
wait $!
18
}
19
20
trap 'onStop; exit 0' SIGTERM SIGINT
21
22
onStart || exit $?
23
24
waitLoop