19 lines
893 B
Bash
19 lines
893 B
Bash
#!/bin/sh
|
|
if [ "${1:-}" = "cluster-repair" ]; then
|
|
shift
|
|
exec java -XX:MaxRAMPercentage=70 --add-modules java.net.http -cp /app:/app/postgresql.jar:/app/hash4j.jar cloud.lunarsky.store.ClusterRepair "$@"
|
|
fi
|
|
if [ "${1:-}" = "cluster-gc" ]; then
|
|
shift
|
|
exec java -XX:MaxRAMPercentage=70 --add-modules java.net.http -cp /app:/app/postgresql.jar:/app/hash4j.jar cloud.lunarsky.store.ClusterGc "$@"
|
|
fi
|
|
if [ "${1:-}" = "cluster-migrate" ]; then
|
|
shift
|
|
exec java -XX:MaxRAMPercentage=70 --add-modules java.net.http -cp /app:/app/postgresql.jar:/app/hash4j.jar cloud.lunarsky.store.ClusterMigrate "$@"
|
|
fi
|
|
if [ "${1:-}" = "cluster-join" ]; then
|
|
shift
|
|
exec java -XX:MaxRAMPercentage=70 --add-modules java.net.http -cp /app:/app/postgresql.jar:/app/hash4j.jar cloud.lunarsky.store.ClusterJoin "$@"
|
|
fi
|
|
exec java -XX:MaxRAMPercentage=70 -cp /app:/app/hash4j.jar cloud.lunarsky.store.Cli "$@"
|