We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start.sh
#!/bin/sh /usr/bin/tmux new-session -s minecraft -d tmux send -t minecraft "LD_LIBRARY_PATH=. ./bedrock_server" ENTER tmux send -t minecraft "gamerule showcoordinates true" ENTER tmux send -t minecraft "gamerule keepInventory true" ENTER
stop.sh
#!/bin/sh /usr/bin/tmux send -t minecraft save-all ENTER /usr/bin/tmux send -t minecraft stop ENTER echo "Killing minecraft session" /usr/bin/tmux kill-session -t minecraft
/etc/systemd/system/minecraft-bedrock.service
[Unit] Description=Minecraft Bedrock server Wants=network.target After=network.target [Service] User=minecraft Group=minecraft Type=forking ProtectHome=true ProtectSystem=full PrivateDevices=true NoNewPrivileges=true InaccessibleDirectories=/root /sys /srv /media -/lost+found ReadWriteDirectories=/opt/minecraft WorkingDirectory=/opt/minecraft ExecStart=/opt/minecraft/start.sh ExecStop=/opt/minecraft/stop.sh TimeoutStopSec=20 Restart=on-failure [Install] WantedBy=multi-user.target
The text was updated successfully, but these errors were encountered:
No branches or pull requests
start.sh
stop.sh
/etc/systemd/system/minecraft-bedrock.service
The text was updated successfully, but these errors were encountered: