dockerfile/examples/papermc/velocity/alpine/entrypoint.sh

12 lines
826 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo '===================================================================================================='
echo `date +%Y-%m-%d` `date +%H:%M:%S`
echo '============================== 开始启动 PaperMC Velocity...... =============================='
echo 'PaperMC Velocity 版本号:' $PAPERMC_VELOCITY_VERSION
echo 'PaperMC Velocity 工作目录:' $PAPERMC_VELOCITY_HOME
echo 'PaperMC Velocity 监听端口25577'
echo '数据文件目录:' $PAPERMC_VELOCITY_DATA_DIR
echo '----------------------------------------------------------------------------------------------------'
java -Xms1G -Xmx1G -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar $PAPERMC_VELOCITY_HOME/velocity-$PAPERMC_VELOCITY_VERSION.jar