mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-16 16:31:20 +00:00
Use pkill instead of killall
This commit is contained in:
parent
aa38aede7f
commit
c817e7624b
|
@ -11,17 +11,17 @@ chmod -R 500 plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/
|
|||
|
||||
git clone git@github.com:kaboomserver/schematics.git plugins/FastAsyncWorldEdit/schematics/
|
||||
|
||||
tmux new -d -s server 'while true; do
|
||||
tmux new -d -s server 'set -x; while true; do
|
||||
java -Xmx384M -Xss512k -Xaggressive -Xcompressedrefs -Xdump:none -Xgcpolicy:balanced -Xcompactexplicitgc -Xcompactgc -Xquickstart -Xshareclasses -XX:-HeapDumpOnOutOfMemoryError -XX:MaxDirectMemorySize=64M -XX:+UseContainerSupport -Dcom.mojang.eula.agree=true -Dpaper.playerconnection.keepalive=360 -jar minecraft-server.jar --world-dir=worlds
|
||||
sleep 1
|
||||
done'
|
||||
|
||||
tmux new -d -s remote 'while true; do
|
||||
tmux new -d -s remote 'set -x; while true; do
|
||||
ssh -i ~/.ssh/remote -o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -c aes128-ctr -C -S none -N -T -R 53950:localhost:25565 -p 53940 remote@play.kaboom.pw
|
||||
sleep 1
|
||||
done'
|
||||
|
||||
tmux new -d -s schematics 'while true; do
|
||||
tmux new -d -s schematics 'set -x; while true; do
|
||||
cd $HOME/plugins/FastAsyncWorldEdit/schematics/
|
||||
if [ "$(git add $(git ls-files -o) -v)" ]; then
|
||||
git -c user.name='kaboom' -c user.email='kaboom.pw' commit -m "Add new schematics"
|
||||
|
@ -39,7 +39,7 @@ tmux new -d -s alivecheck "set -x; while true; do
|
|||
if [ "$(tail -20 $HOME/logs/latest.log | grep -c 'ERROR]: Requested chunk')" -eq 1 ]; then
|
||||
rm -rf $HOME/worlds/
|
||||
fi
|
||||
killall -9 java
|
||||
pkill -9 java
|
||||
fi
|
||||
done"
|
||||
|
||||
|
|
Loading…
Reference in a new issue