fix: shell wrapper to handle signals
This commit is contained in:
parent
a2895b4271
commit
250fff2b47
2 changed files with 16 additions and 5 deletions
14
piped.sh
Executable file
14
piped.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
java -server -Xmx${MAX_MEMORY:-1G} -Xaggressive \
|
||||
-XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication \
|
||||
-XX:+UseCompressedOops -XX:+UseNUMA -XX:+IdleTuningGcOnIdle -Xgcpolicy:gencon \
|
||||
-Xshareclasses:allowClasspaths -Xtune:virtualized -Xcompactgc \
|
||||
-jar /app/piped.jar &
|
||||
|
||||
pid=$!
|
||||
|
||||
trap "kill -INT $pid" INT
|
||||
trap "kill -TERM $pid" TERM
|
||||
|
||||
wait
|
Loading…
Add table
Reference in a new issue